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
- Lines: 17
- Date:
Mon Aug 9 11:27:39 1999
- Orig file:
v2.3.12/linux/drivers/usb/ohci.c
- Orig date:
Wed Jul 28 14:47:42 1999
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)