patch-2.3.13 linux/drivers/usb/ohci-hcd.c
Next file: linux/drivers/usb/ohci.c
Previous file: linux/drivers/usb/hub.c
Back to the patch index
Back to the overall index
-  Lines: 17
 -  Date:
Thu Aug  5 15:11:52 1999
 -  Orig file: 
v2.3.12/linux/drivers/usb/ohci-hcd.c
 -  Orig date: 
Wed Jul 21 15:46:48 1999
 
diff -u --recursive --new-file v2.3.12/linux/drivers/usb/ohci-hcd.c linux/drivers/usb/ohci-hcd.c
@@ -1449,14 +1449,14 @@
  
 static int start_ohci(struct pci_dev *dev)
 {
-	unsigned int mem_base = dev->base_address[0];
+	unsigned int 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;
 
 	/* 
 	 * FIXME ioremap_nocache isn't implemented on all CPUs (such
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)