Hi,
This patch fixes the generation of devfs names if dynamic minors are disabled.
It's on top of the newids patch.
Bye,
Henning
diff -u -r linux-2.5.63-newids5/drivers/usb/image/scanner.c
linux-2.5.63-minor/drivers/usb/image/scanner.c
--- linux-2.5.63-newids5/drivers/usb/image/scanner.c 2003-02-25 15:24:30.000000000
+0100
+++ linux-2.5.63-minor/drivers/usb/image/scanner.c 2003-02-25 15:32:02.000000000
+0100
@@ -349,6 +349,7 @@
* 0.4.11 2003-02-25
* - Added vendor/product ids for Artec, Avision, Brother, Medion, Primax,
* Prolink, Fujitsu, Plustek, and SYSCAN scanners.
+ * - Fixed generation of devfs names if dynamic minors are disabled.
*
* TODO
* - Performance
@@ -1056,7 +1057,7 @@
scn->scn_minor = scn_minor;
scn->isopen = 0;
- sprintf(name, "scanner%d", scn->scn_minor);
+ sprintf(name, "scanner%d", scn->scn_minor - SCN_BASE_MNR);
scn->devfs = devfs_register(usb_devfs_handle, name,
DEVFS_FL_DEFAULT, USB_MAJOR,
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel