Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbcon: convert last two unregister_con_driver call to do_unregister_con_driver

There are only two place use unregister_con_driver now, this patch
convert them to do_unregister_con_driver too, then we can delete
unregister_con_driver whos function can be achieved with do_unregister_con_driver
easily to reduce code size and duplication.

Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Wang YanQing and committed by
Greg Kroah-Hartman
70125e76 77d6c984

+4 -2
+3 -1
drivers/tty/vt/vt.c
··· 3631 3631 */ 3632 3632 void give_up_console(const struct consw *csw) 3633 3633 { 3634 - unregister_con_driver(csw); 3634 + console_lock(); 3635 + do_unregister_con_driver(csw); 3636 + console_unlock(); 3635 3637 } 3636 3638 3637 3639 static int __init vtconsole_class_init(void)
+1 -1
drivers/video/console/fbcon.c
··· 3621 3621 fbcon_deinit_device(); 3622 3622 device_destroy(fb_class, MKDEV(0, 0)); 3623 3623 fbcon_exit(); 3624 + do_unregister_con_driver(&fb_con); 3624 3625 console_unlock(); 3625 - unregister_con_driver(&fb_con); 3626 3626 } 3627 3627 3628 3628 module_exit(fb_console_exit);