patch-2.3.16 linux/drivers/atm/ambassador.c

Next file: linux/drivers/atm/atmdev_init.c
Previous file: linux/drivers/atm/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/drivers/atm/ambassador.c linux/drivers/atm/ambassador.c
@@ -2338,8 +2338,8 @@
     
     // read resources from PCI configuration space
     u32 * membase = bus_to_virt
-      (pci_dev->base_address[0] & PCI_BASE_ADDRESS_MEM_MASK);
-    u32 iobase = pci_dev->base_address[1] & PCI_BASE_ADDRESS_IO_MASK;
+      (pci_dev->resource[0].start);
+    u32 iobase = pci_dev->resource[1].start;
     u8 irq = pci_dev->irq;
     
     // check IO region

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