igafb: switch to pci_get API
PATCH 1/1 igafb: switch to pci_get API
Signed-off-by Alan Cox <[email protected]>
drivers/video/igafb.c +4 -2
@@ -384,19 +384,21 @@if (!con_is_present ())return -ENXIO ; - pdev =pci_find_device (PCI_VENDOR_ID_INTERG , + pdev =pci_get_device (PCI_VENDOR_ID_INTERG ,PCI_DEVICE_ID_INTERG_1682 ,0 );if (pdev ==NULL ) {/* * XXX We tried to use cyber2000fb.c for IGS 2000. * But it does not initialize the chip in JavaStation-E, alas. */ - pdev =pci_find_device (PCI_VENDOR_ID_INTERG ,0x2000 ,0 ); + pdev =pci_get_device (PCI_VENDOR_ID_INTERG ,0x2000 ,0 );if (pdev ==NULL ) {return -ENXIO ; } iga2000 =1 ; } +/* We leak a reference here but as it cannot be unloaded this is +fine. If you write unload code remember to free it in unload */ size =sizeof (struct fb_info ) +sizeof (struct iga_par ) +sizeof (u32)*16 ;
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642