patch-2.4.15 linux/drivers/net/wan/farsync.c

Next file: linux/drivers/net/wan/z85230.c
Previous file: linux/drivers/net/wan/dscc4.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/drivers/net/wan/farsync.c linux/drivers/net/wan/farsync.c
@@ -1746,7 +1746,7 @@
         }
 
         /* Record driver data for later use */
-        pdev->driver_data = card;
+        pci_set_drvdata(pdev, card);
 
         /* Remainder of card setup */
         fst_init_card ( card );
@@ -1785,7 +1785,7 @@
         struct fst_card_info *card;
         int i;
 
-        card = pdev->driver_data;
+        card = pci_get_drvdata(pdev);
 
         for ( i = 0 ; i < card->nports ; i++ )
         {

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