]> git.karo-electronics.de Git - linux-beck.git/commitdiff
video/mmpfb: allow modular build
authorArnd Bergmann <arnd@arndb.de>
Wed, 28 Jan 2015 20:13:50 +0000 (21:13 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Jan 2015 07:45:20 +0000 (09:45 +0200)
The frame buffer core can be a module, which means any fb drivers
should be able to build as modules too. This turns mmpfb into
a tristate option to allow that and fix a possible randconfig
build error.

drivers/built-in.o: In function `modes_setup':
:(.text+0x11b34): undefined reference to `fb_videomode_to_modelist'
:(.text+0x11b5c): undefined reference to `fb_videomode_to_var'

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/mmp/Makefile
drivers/video/fbdev/mmp/fb/Kconfig

index a014cb358bf8776c2d5f18320c78e60c26619c33..924dd0930cc7b360bbda8cf7a13962965528dbdb 100644 (file)
@@ -1 +1,3 @@
-obj-y += core.o hw/ panel/ fb/
+obj-$(CONFIG_MMP_DISP) += mmp_disp.o hw/ panel/ fb/
+
+mmp_disp-y             += core.o
index 9b0141f105f592c56e212f6d6873e03441168eed..985e1a7cd254de49696f101ca57f8dc2cc991933 100644 (file)
@@ -1,7 +1,7 @@
 if MMP_DISP
 
 config MMP_FB
-       bool "fb driver for Marvell MMP Display Subsystem"
+       tristate "fb driver for Marvell MMP Display Subsystem"
        depends on FB
        select FB_CFB_FILLRECT
        select FB_CFB_COPYAREA