aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2006-06-26 03:27:13 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 12:58:33 -0400
commit5bd42536b395944a1134baa3624b2e0cff6ac7bf (patch)
tree13f8a511d15b14c107b352cda5c8306aad8d50a0 /drivers/video
parent13ae66458971b4967350765a8bfaf2a636442e5f (diff)
[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: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/console/fbcon.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index 26effab5a13e..5dc4083552d8 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
@@ -3247,9 +3247,7 @@ static int __init fb_console_init(void)
3247 acquire_console_sem(); 3247 acquire_console_sem();
3248 fb_register_client(&fbcon_event_notifier); 3248 fb_register_client(&fbcon_event_notifier);
3249 fbcon_class_device = 3249 fbcon_class_device =
3250 class_device_create(fb_class, NULL, 3250 class_device_create(fb_class, NULL, MKDEV(0, 0), NULL, "fbcon");
3251 MKDEV(FB_MAJOR, FB_MAX), NULL,
3252 "fbcon");
3253 3251
3254 if (IS_ERR(fbcon_class_device)) { 3252 if (IS_ERR(fbcon_class_device)) {
3255 printk(KERN_WARNING "Unable to create class_device " 3253 printk(KERN_WARNING "Unable to create class_device "
@@ -3285,7 +3283,7 @@ static void __exit fb_console_exit(void)
3285 acquire_console_sem(); 3283 acquire_console_sem();
3286 fb_unregister_client(&fbcon_event_notifier); 3284 fb_unregister_client(&fbcon_event_notifier);
3287 fbcon_deinit_class_device(); 3285 fbcon_deinit_class_device();
3288 class_device_destroy(fb_class, MKDEV(FB_MAJOR, FB_MAX)); 3286 class_device_destroy(fb_class, MKDEV(0, 0));
3289 fbcon_exit(); 3287 fbcon_exit();
3290 release_console_sem(); 3288 release_console_sem();
3291 unregister_con_driver(&fb_con); 3289 unregister_con_driver(&fb_con);