Skip to content

Commit

Permalink
video/mmpfb: allow modular build
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann authored and Tomi Valkeinen committed Jan 30, 2015
1 parent 87f0fce commit 6984330
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion drivers/video/fbdev/mmp/Makefile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion drivers/video/fbdev/mmp/fb/Kconfig
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6984330

Please sign in to comment.