From: Colin Leroy <colin@colino.net>
To: benh@kernel.crashing.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] (2.6.7-rc1) ADB driver fails to create /dev/adb
Date: Tue, 25 May 2004 21:45:04 +0200 [thread overview]
Message-ID: <20040525214504.377f3f12@jack.colino.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
Hi,
adb driver in 2.6.7-rc1 fails to create /dev/adb (noticed because
pbbuttonsd complains and doesn't work).
I looked at the differences with 2.6.6's driver, and saw that the
devfs bit was removed. Was there a reason for that, apart the fact that
devfs is obsolete ?
Here's a patch that restores previous behaviour. (I bothered because I
noticed lots of other drivers still using devfs_mk_cdev() and I think
it should stay here for a bit more).
hth,
--
Colin
[-- Attachment #2: adb.c.patch --]
[-- Type: application/octet-stream, Size: 500 bytes --]
--- drivers/macintosh/adb.c.orig 2004-05-25 21:08:10.738489304 +0200
+++ drivers/macintosh/adb.c 2004-05-25 21:28:54.161460280 +0200
@@ -898,6 +898,9 @@
{
if (register_chrdev(ADB_MAJOR, "adb", &adb_fops)) {
printk(KERN_ERR "adb: unable to get major %d\n", ADB_MAJOR);
+ } else if (devfs_mk_cdev(MKDEV(ADB_MAJOR, 0),
+ S_IFCHR | S_IRUSR | S_IWUSR, "adb")) {
+ printk(KERN_ERR "adb: unable to make dev via devfs\n");
return;
}
adb_dev_class = class_simple_create(THIS_MODULE, "adb");
next reply other threads:[~2004-05-25 19:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-25 19:45 Colin Leroy [this message]
2004-05-25 20:29 ` Colin Leroy
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=20040525214504.377f3f12@jack.colino.net \
--to=colin@colino.net \
--cc=benh@kernel.crashing.org \
--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
all inboxes | Powered by JetHome®