Skip to content

Commit

Permalink
[PATCH] VT binding: Do not create a device file for class device 'fbcon'
Browse files Browse the repository at this point in the history
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: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Jun 26, 2006
1 parent 13ae664 commit 5bd4253
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -3247,9 +3247,7 @@ static int __init fb_console_init(void)
acquire_console_sem();
fb_register_client(&fbcon_event_notifier);
fbcon_class_device =
class_device_create(fb_class, NULL,
MKDEV(FB_MAJOR, FB_MAX), NULL,
"fbcon");
class_device_create(fb_class, NULL, MKDEV(0, 0), NULL, "fbcon");

if (IS_ERR(fbcon_class_device)) {
printk(KERN_WARNING "Unable to create class_device "
Expand Down Expand Up @@ -3285,7 +3283,7 @@ static void __exit fb_console_exit(void)
acquire_console_sem();
fb_unregister_client(&fbcon_event_notifier);
fbcon_deinit_class_device();
class_device_destroy(fb_class, MKDEV(FB_MAJOR, FB_MAX));
class_device_destroy(fb_class, MKDEV(0, 0));
fbcon_exit();
release_console_sem();
unregister_con_driver(&fb_con);
Expand Down

0 comments on commit 5bd4253

Please sign in to comment.