video: ARM CLCD: Fix DT-related build problems
authorPawel Moll <pawel.moll@arm.com>
Fri, 1 Aug 2014 14:43:34 +0000 (15:43 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 4 Aug 2014 06:31:35 +0000 (09:31 +0300)
commit1d5167b72ca05b2096760e1200fcd53b5f9a7562
tree15e3b23fb3d6877814dce3b354b40d608612f001
parentd7aa64c32bdcb2c1bc5932b3d2927863ae31ccbc
video: ARM CLCD: Fix DT-related build problems

This patch fixes the following error when !CONFIG_OF:

drivers/video/fbdev/amba-clcd.c:800:54: warning: ‘struct amba_dev’ declared inside parameter list [enabled by default]
 static struct clcd_board *clcdfb_of_get_board(struct amba_dev *dev)
                                                      ^
and adds a missing Kconfig select causing this
when CONFIG_OF && !CONFIG_FB_MODE_HELPERS:

drivers/video/fbdev/amba-clcd.c:567: undefined reference to `fb_videomode_from_videomode'

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/Kconfig
drivers/video/fbdev/amba-clcd.c