patch-2.4.15 linux/drivers/net/3c59x.c

Next file: linux/drivers/net/8139cp.c
Previous file: linux/drivers/mtd/redboot.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/drivers/net/3c59x.c linux/drivers/net/3c59x.c
@@ -868,7 +868,7 @@
 
 static int vortex_suspend (struct pci_dev *pdev, u32 state)
 {
-	struct net_device *dev = pdev->driver_data;
+	struct net_device *dev = pci_get_drvdata(pdev);
 
 	if (dev && dev->priv) {
 		if (netif_running(dev)) {
@@ -881,7 +881,7 @@
 
 static int vortex_resume (struct pci_dev *pdev)
 {
-	struct net_device *dev = pdev->driver_data;
+	struct net_device *dev = pci_get_drvdata(pdev);
 
 	if (dev && dev->priv) {
 		if (netif_running(dev)) {

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