patch-2.4.21 linux-2.4.21/drivers/video/neofb.c

Next file: linux-2.4.21/drivers/video/pmagb-b-fb.h
Previous file: linux-2.4.21/drivers/video/modedb.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/video/neofb.c linux-2.4.21/drivers/video/neofb.c
@@ -2253,7 +2253,7 @@
   /*
    * Our driver data
    */
-  dev->driver_data = info;
+  pci_set_drvdata(dev, info);
 
   return 0;
 
@@ -2267,7 +2267,7 @@
 
 static void __devexit neofb_remove (struct pci_dev *dev)
 {
-  struct neofb_info *info = (struct neofb_info *)dev->driver_data;
+  struct neofb_info *info = pci_get_drvdata(dev);
 
   DBG("neofb_remove");
 
@@ -2289,7 +2289,7 @@
        * Ensure that the driver data is no longer
        * valid.
        */
-      dev->driver_data = NULL;
+      pci_set_drvdata(dev, NULL);
     }
 }
 

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