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

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

diff -u --recursive --new-file v2.3.15/linux/drivers/atm/horizon.c linux/drivers/atm/horizon.c
@@ -2517,7 +2517,7 @@
   
   // clear error and grab cell rate resource lock
   error = 0;
-  spin_lock (&dev->rates_lock);
+  spin_lock (&dev->rate_lock);
   
   if (vcc.tx_rate > dev->tx_avail) {
     PRINTD (DBG_QOS, "not enough TX PCR left");
@@ -2538,7 +2538,7 @@
   }
   
   // release lock and exit on error
-  spin_unlock (&dev->rates_lock);
+  spin_unlock (&dev->rate_lock);
   if (error) {
     PRINTD (DBG_QOS|DBG_VCC, "insufficient cell rate resources");
     kfree (vccp);
@@ -2618,12 +2618,12 @@
   }
   
   // atomically release our rate reservation
-  spin_lock (&dev->rates_lock);
+  spin_lock (&dev->rate_lock);
   PRINTD (DBG_QOS|DBG_VCC, "releasing %u TX PCR and %u RX PCR",
 	  vcc->tx_rate, vcc->rx_rate);
   dev->tx_avail += vcc->tx_rate;
   dev->rx_avail += vcc->rx_rate;
-  spin_unlock (&dev->rates_lock);
+  spin_unlock (&dev->rate_lock);
   
   // free our structure
   kfree (vcc);
@@ -2790,9 +2790,8 @@
     hrz_dev * dev;
     
     // adapter slot free, read resources from PCI configuration space
-    u32 iobase = pci_dev->base_address[0] & PCI_BASE_ADDRESS_IO_MASK;
-    u32 * membase = bus_to_virt
-      (pci_dev->base_address[1] & PCI_BASE_ADDRESS_MEM_MASK);
+    u32 iobase = pci_dev->resource[0].start;
+    u32 * membase = bus_to_virt(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)