From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Greg KH <gregkh@suse.de>,
Linux Fbdev development list
<linux-fbdev-devel@lists.sourceforge.net>,
Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: [PATCH 4/9] VT binding: Do not create a device file for class device 'fbcon'
Date: Sun, 18 Jun 2006 23:26:02 +0800 [thread overview]
Message-ID: <4495708A.70409@gmail.com> (raw)
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>
---
drivers/video/console/fbcon.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index 839f414..6e813a1 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
@@ -3244,9 +3244,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 "
@@ -3282,7 +3280,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);
reply other threads:[~2006-06-18 15:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4495708A.70409@gmail.com \
--to=adaplas@gmail.com \
--cc=akpm@osdl.org \
--cc=gregkh@suse.de \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).