Commit a481365a authored by Henning Meier-Geinitz's avatar Henning Meier-Geinitz Committed by Greg Kroah-Hartman

[PATCH] USB: Fixed generation of devfs names in scanner driver

This patch fixes the generation of devfs names if dynamic minors are disabled.
parent 3a171cf3
...@@ -349,6 +349,7 @@ ...@@ -349,6 +349,7 @@
* 0.4.11 2003-02-25 * 0.4.11 2003-02-25
* - Added vendor/product ids for Artec, Avision, Brother, Medion, Primax, * - Added vendor/product ids for Artec, Avision, Brother, Medion, Primax,
* Prolink, Fujitsu, Plustek, and SYSCAN scanners. * Prolink, Fujitsu, Plustek, and SYSCAN scanners.
* - Fixed generation of devfs names if dynamic minors are disabled.
* *
* TODO * TODO
* - Performance * - Performance
...@@ -1056,7 +1057,7 @@ probe_scanner(struct usb_interface *intf, ...@@ -1056,7 +1057,7 @@ probe_scanner(struct usb_interface *intf,
scn->scn_minor = scn_minor; scn->scn_minor = scn_minor;
scn->isopen = 0; 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, scn->devfs = devfs_register(usb_devfs_handle, name,
DEVFS_FL_DEFAULT, USB_MAJOR, DEVFS_FL_DEFAULT, USB_MAJOR,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment