Skip to content

Commit 423431a

Browse files
arndbtomba
authored andcommitted
video: sh_mobile_lcdcfb depends on meram
The sh_mobile_lcdcfb driver calls interfaces provided by the corresponding "meram" helper. This fails if meram is a module but lcdcfb is built-in. To work around it, this uses special Kconfig magic to only allow lcdcfb to be built if a) both are modules, b) meram is built-in, or c) meram is disabled and the helpers stubbed out Changing meram from 'y' to 'm' now forces clcd to be a module as well, which seems to be the desired behavior. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Peter Griffin <[email protected]> Cc: Simon Horman <[email protected]> Cc: Magnus Damm <[email protected]> Cc: [email protected] Cc: Jean-Christophe Plagniol-Villard <[email protected]> Cc: Tomi Valkeinen <[email protected]> Cc: [email protected] Signed-off-by: Tomi Valkeinen <[email protected]>
1 parent ee34687 commit 423431a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/video/fbdev/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,6 +1971,7 @@ config FB_W100
19711971
config FB_SH_MOBILE_LCDC
19721972
tristate "SuperH Mobile LCDC framebuffer support"
19731973
depends on FB && (SUPERH || ARCH_SHMOBILE) && HAVE_CLK
1974+
depends on FB_SH_MOBILE_MERAM || !FB_SH_MOBILE_MERAM
19741975
select FB_SYS_FILLRECT
19751976
select FB_SYS_COPYAREA
19761977
select FB_SYS_IMAGEBLIT

0 commit comments

Comments
 (0)