提交 5bd42536 编写于 作者: A Antonino A. Daplas 提交者: Linus Torvalds

[PATCH] VT binding: Do not create a device file for class device 'fbcon'

The class device "fbcon" does not need to be a device file.  Do not create one
by passing a major and minor number of zero to
class_device_create()/destroy().
Signed-off-by: NAntonino Daplas <adaplas@pol.net>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 13ae6645
...@@ -3247,9 +3247,7 @@ static int __init fb_console_init(void) ...@@ -3247,9 +3247,7 @@ static int __init fb_console_init(void)
acquire_console_sem(); acquire_console_sem();
fb_register_client(&fbcon_event_notifier); fb_register_client(&fbcon_event_notifier);
fbcon_class_device = fbcon_class_device =
class_device_create(fb_class, NULL, class_device_create(fb_class, NULL, MKDEV(0, 0), NULL, "fbcon");
MKDEV(FB_MAJOR, FB_MAX), NULL,
"fbcon");
if (IS_ERR(fbcon_class_device)) { if (IS_ERR(fbcon_class_device)) {
printk(KERN_WARNING "Unable to create class_device " printk(KERN_WARNING "Unable to create class_device "
...@@ -3285,7 +3283,7 @@ static void __exit fb_console_exit(void) ...@@ -3285,7 +3283,7 @@ static void __exit fb_console_exit(void)
acquire_console_sem(); acquire_console_sem();
fb_unregister_client(&fbcon_event_notifier); fb_unregister_client(&fbcon_event_notifier);
fbcon_deinit_class_device(); fbcon_deinit_class_device();
class_device_destroy(fb_class, MKDEV(FB_MAJOR, FB_MAX)); class_device_destroy(fb_class, MKDEV(0, 0));
fbcon_exit(); fbcon_exit();
release_console_sem(); release_console_sem();
unregister_con_driver(&fb_con); unregister_con_driver(&fb_con);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册