[PATCH resend] omap: Fix linker error in drivers/video/omap/lcd_2430sdp.c

Jarkko Nikula jhnikula at gmail.com
Mon Feb 28 09:47:15 EST 2011


On Thu, 24 Feb 2011 13:26:44 -0800
Tony Lindgren <tony at atomide.com> wrote:

> We should avoid selecting driver related things, otherwise we can never
> build a tiny kernel with initramfs with everything as modules.
> 
> Can you see if adding depends to the LCD panel option does the trick
> instead?
> 
True and as lcd_2430sdp.c is not compiled without CONFIG_FB_OMAP a hack
below should work a bit better.

What would you think Tomi?

diff --git a/drivers/video/omap/Kconfig b/drivers/video/omap/Kconfig
index 083c8fe..c981249 100644
--- a/drivers/video/omap/Kconfig
+++ b/drivers/video/omap/Kconfig
@@ -5,6 +5,7 @@ config FB_OMAP
 	select FB_CFB_FILLRECT
 	select FB_CFB_COPYAREA
 	select FB_CFB_IMAGEBLIT
+	select TWL4030_CORE if MACH_OMAP_2430SDP
 	help
           Frame buffer driver for OMAP based boards.

-- 
Jarkko



More information about the linux-arm-kernel mailing list