Skip to content

Commit aae3394

Browse files
rddunlapbzolnier
authored andcommitted
fbdev: fix broken menu dependencies
The framebuffer options and devices menu is unintentionally split or broken because some items in it do not depend on FB (including several under omap and mmp). Fix this by moving FB_CMDLINE, FB_NOTIFY, and FB_CLPS711X_OLD to just before the FB Kconfig symbol definition and by moving the omap, omap2, and mmp menus to last, following FB_SM712. Also, the FB_VIA dependencies are duplicated by both being inside an "if FB_VIA/endif" block and "depends on FB_VIA", so drop the "depends on FB_VIA" lines since they are redundant. Fixes: ea6763c ("video/fbdev: Always built-in video= cmdline parsing") Fixes: 5ec9653 ("fbdev: Make fb-notify a no-op if CONFIG_FB=n") Fixes: ef74d46 ("video: clps711x: Add new Cirrus Logic CLPS711X framebuffer driver") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
1 parent 864eb1a commit aae3394

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

drivers/video/fbdev/Kconfig

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
# fbdev configuration
33
#
44

5+
config FB_CMDLINE
6+
bool
7+
8+
config FB_NOTIFY
9+
bool
10+
11+
config FB_CLPS711X_OLD
12+
tristate
13+
select FB_CFB_FILLRECT
14+
select FB_CFB_COPYAREA
15+
select FB_CFB_IMAGEBLIT
16+
517
menuconfig FB
618
tristate "Support for frame buffer devices"
719
select FB_CMDLINE
@@ -54,12 +66,6 @@ config FIRMWARE_EDID
5466
combination with certain motherboards and monitors are known to
5567
suffer from this problem.
5668

57-
config FB_CMDLINE
58-
bool
59-
60-
config FB_NOTIFY
61-
bool
62-
6369
config FB_DDC
6470
tristate
6571
depends on FB
@@ -329,12 +335,6 @@ config FB_ACORN
329335
hardware found in Acorn RISC PCs and other ARM-based machines. If
330336
unsure, say N.
331337

332-
config FB_CLPS711X_OLD
333-
tristate
334-
select FB_CFB_FILLRECT
335-
select FB_CFB_COPYAREA
336-
select FB_CFB_IMAGEBLIT
337-
338338
config FB_CLPS711X
339339
tristate "CLPS711X LCD support"
340340
depends on FB && (ARCH_CLPS711X || COMPILE_TEST)
@@ -1456,7 +1456,6 @@ if FB_VIA
14561456

14571457
config FB_VIA_DIRECT_PROCFS
14581458
bool "direct hardware access via procfs (DEPRECATED)(DANGEROUS)"
1459-
depends on FB_VIA
14601459
default n
14611460
help
14621461
Allow direct hardware access to some output registers via procfs.
@@ -1466,7 +1465,6 @@ config FB_VIA_DIRECT_PROCFS
14661465

14671466
config FB_VIA_X_COMPATIBILITY
14681467
bool "X server compatibility"
1469-
depends on FB_VIA
14701468
default n
14711469
help
14721470
This option reduces the functionality (power saving, ...) of the
@@ -2308,10 +2306,6 @@ config FB_SIMPLE
23082306
Configuration re: surface address, size, and format must be provided
23092307
through device tree, or plain old platform data.
23102308

2311-
source "drivers/video/fbdev/omap/Kconfig"
2312-
source "drivers/video/fbdev/omap2/Kconfig"
2313-
source "drivers/video/fbdev/mmp/Kconfig"
2314-
23152309
config FB_SSD1307
23162310
tristate "Solomon SSD1307 framebuffer support"
23172311
depends on FB && I2C
@@ -2341,3 +2335,7 @@ config FB_SM712
23412335
This driver is also available as a module. The module will be
23422336
called sm712fb. If you want to compile it as a module, say M
23432337
here and read <file:Documentation/kbuild/modules.txt>.
2338+
2339+
source "drivers/video/fbdev/omap/Kconfig"
2340+
source "drivers/video/fbdev/omap2/Kconfig"
2341+
source "drivers/video/fbdev/mmp/Kconfig"

0 commit comments

Comments
 (0)