patch-2.3.13 linux/drivers/usb/ohci.c

Next file: linux/drivers/usb/printer.c
Previous file: linux/drivers/usb/ohci-hcd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/drivers/usb/ohci.c linux/drivers/usb/ohci.c
@@ -2607,14 +2607,14 @@
  */
 static int init_ohci(struct pci_dev *dev)
 {
-	unsigned long mem_base = dev->base_address[0];
+	unsigned long mem_base = dev->resource[0].flags;
 	
 	/* If its OHCI, its memory */
 	if (mem_base & PCI_BASE_ADDRESS_SPACE_IO)
 		return -ENODEV;
 
 	/* Get the memory address and map it for IO */
-	mem_base &= PCI_BASE_ADDRESS_MEM_MASK;
+	mem_base = dev->resource[0].start;
 
 	/* no interrupt won't work... */
 	if (dev->irq == 0) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)