patch-2.3.51 linux/drivers/usb/dabusb.c
Next file: linux/drivers/usb/dabusb.h
Previous file: linux/drivers/usb/cpia.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Fri Mar 10 16:18:34 2000
- Orig file:
v2.3.50/linux/drivers/usb/dabusb.c
- Orig date:
Thu Feb 10 17:11:14 2000
diff -u --recursive --new-file v2.3.50/linux/drivers/usb/dabusb.c linux/drivers/usb/dabusb.c
@@ -37,8 +37,7 @@
#include <asm/uaccess.h>
#include <asm/atomic.h>
#include <linux/delay.h>
-
-#include "usb.h"
+#include <linux/usb.h>
#include "dabusb.h"
#include "dabfirmware.h"
@@ -801,6 +800,10 @@
{
unsigned u;
+ /* register misc device */
+ if (usb_register(&dabusb_driver))
+ return -1;
+
/* initialize struct */
for (u = 0; u < NRDABUSB; u++) {
pdabusb_t s = &dabusb[u];
@@ -815,11 +818,7 @@
INIT_LIST_HEAD (&s->rec_buff_list);
}
- /* register misc device */
- usb_register (&dabusb_driver);
-
dbg("dabusb_init: driver registered");
-
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)