diff mbox

drm: fix compilation warning with i386_defconfig

Message ID 1306902416-25567-1-git-send-email-tushar.behera@linaro.org
State Superseded
Headers show

Commit Message

Tushar Behera June 1, 2011, 4:26 a.m. UTC
The patch d795e2c "Adding omap_gpu drm display driver" introduces 
following compilation warning when the kernel is compiled for x86 
architecture (i386_defconfig). Also the kernel compilation is 
unsuccessful because of calls to omap specific platform header files.

warning: (VIDEO_OMAP2_VOUT && DRM_OMAP) selects OMAP2_DSS which
	has unmet direct dependencies (HAS_IOMEM && ARCH_OMAP2PLUS)

The problem is fixed by making DRM_OMAP depend on ARCH_OMAP2.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
---
 drivers/gpu/drm/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index fdef87b..0949995 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -169,7 +169,7 @@  config DRM_SAVAGE
 
 config DRM_OMAP
 	tristate "OMAP GPU (EXPERIMENTAL)"
-	depends on DRM && !CONFIG_FB_OMAP2
+	depends on DRM && ARCH_OMAP2 && !CONFIG_FB_OMAP2
 	select DRM_KMS_HELPER
 	select OMAP2_VRAM
 	select OMAP2_DSS