fbcon: Revise primary device selection
Subsystems (2)
PATCH 6/8 fbcon: Revise primary device selection
Use set_con2fb_map() to select the primary display driver instead of using unbind_con_driver() and bind_con_driver(). Using the former is much simpler and safer than the current one.
---
I was forced to use unbind_con_driver/bind_con_driver initially because set_con2fb_map() is broken. Now that it is fixed, I can move primary device selection to set_con2fb_map. There is lesser complexity and lesser code, and it does not depend on the VT layer.
Tony
drivers/video/console/Kconfig | 6 +---- drivers/video/console/fbcon.c | 51 +++++++++++------------------------------ 2 files changed, 15 insertions(+), 42 deletions(-)
drivers/video/console/Kconfig +1 -5
@@ -120,7 +120,7 @@ config FRAMEBUFFER_CONSOLE config FRAMEBUFFER_CONSOLE_DETECT_PRIMARY bool "Map the console to the primary display device" - depends on FRAMEBUFFER_CONSOLE && VT_HW_CONSOLE_BINDING + depends on FRAMEBUFFER_CONSOLE default n ---help--- If this option is selected, the framebuffer console will
@@ -132,10 +132,6 @@ config FRAMEBUFFER_CONSOLE_DETECT_PRIMAR You can always override the automatic selection of the primary device by using the fbcon=map: boot option. - To select this feature, "Support for binding and unbinding console - drivers", under "Device Drivers"->"Character Devices" must be set to - y. - If unsure, select n. config FRAMEBUFFER_CONSOLE_ROTATION
drivers/video/console/fbcon.c +14 -37
82 lines not on this page · raw message
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/