patch-2.3.51 linux/drivers/usb/usb-uhci.c
Next file: linux/drivers/usb/usb.c
Previous file: linux/drivers/usb/usb-storage.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Fri Mar 10 16:18:34 2000
- Orig file:
v2.3.50/linux/drivers/usb/usb-uhci.c
- Orig date:
Wed Feb 16 17:03:52 2000
diff -u --recursive --new-file v2.3.50/linux/drivers/usb/usb-uhci.c linux/drivers/usb/usb-uhci.c
@@ -28,6 +28,9 @@
#include <linux/unistd.h>
#include <linux/interrupt.h> /* for in_interrupt() */
#include <linux/init.h>
+/* This enables debug printks */
+#define DEBUG
+#include <linux/usb.h>
#include <asm/uaccess.h>
#include <asm/io.h>
@@ -37,16 +40,12 @@
/* This enables more detailed sanity checks in submit_iso */
//#define ISO_SANITY_CHECK
-/* This enables debug printks */
-#define DEBUG
-
/* This enables all symbols to be exported, to ease debugging oopses */
//#define DEBUG_SYMBOLS
/* This enables an extra UHCI slab for memory debugging */
#define DEBUG_SLAB
-#include "usb.h"
#include "usb-uhci.h"
#include "usb-uhci-debug.h"
@@ -2408,7 +2407,7 @@
unsigned int io_addr = dev->resource[i].start;
unsigned int io_size =
dev->resource[i].end - dev->resource[i].start + 1;
- if (!(dev->resource[i].flags & 1))
+ if (!(dev->resource[i].flags & IORESOURCE_IO))
continue;
#else
unsigned int io_addr = dev->base_address[i];
@@ -2464,7 +2463,8 @@
continue;
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,3,8)
- pci_enable_device (dev);
+ if (pci_enable_device (dev) < 0)
+ continue;
#endif
if(!dev->irq)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)