drivers/char remove pci_find_{device, subsys}
Subsystems (3)
PATCH 3/18 drivers/char remove pci_find_{device, subsys}
Remove deprecated pci_find_device and pci_find_subsys
AG
--
May the source be with you
Signed-off-by Amit Gud <[email protected]>
drivers/char/ip2main.c +1 -1
@@ -595,7 +595,7 @@ ip2_loadmain(int *iop, int *irqp, unsign#ifdef CONFIG_PCI {struct pci_dev *pci_dev_i =NULL ; - pci_dev_i =pci_find_device (PCI_VENDOR_ID_COMPUTONE , + pci_dev_i =pci_get_device (PCI_VENDOR_ID_COMPUTONE ,PCI_DEVICE_ID_COMPUTONE_IP2EX , pci_dev_i);if (pci_dev_i !=NULL ) {unsigned int addr;
drivers/char/isicom.c +1 -1
@@ -2002,7 +2002,7 @@ static int __devinit isicom_setup(void)for (idx=0 ; idx <DEVID_COUNT ; idx++) { dev =NULL ;for (;;){ -if (!(dev =pci_find_device (VENDOR_ID , isicom_pci_tbl[idx].device, dev))) +if (!(dev =pci_get_device (VENDOR_ID , isicom_pci_tbl[idx].device, dev)))break ;if (card >=BOARD_COUNT )break ;
drivers/char/istallion.c +1 -1
@@ -4613,7 +4613,7 @@ static int stli_findpcibrds(void)printk ("stli_findpcibrds()\n" );#endif -while ((dev =pci_find_device (PCI_VENDOR_ID_STALLION , +while ((dev =pci_get_device (PCI_VENDOR_ID_STALLION ,PCI_DEVICE_ID_ECRA , dev))) {if ((rc =stli_initpcibrd (BRD_ECPPCI , dev)))return (rc);
drivers/char/moxa.c +1 -1
@@ -451,7 +451,7 @@ static int __init moxa_init(void)int n = (sizeof (moxa_pcibrds) /sizeof (moxa_pcibrds[0 ])) -1 ; i =0 ;while (i < n) { -while ((p =pci_find_device (moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL ) +while ((p =pci_get_device (moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL ) {if (pci_enable_device (p))continue ;
drivers/char/mxser.c +1 -1
@@ -839,7 +839,7 @@ static int mxser_init(void) index =0 ; b =0 ;while (b < n) { - pdev =pci_find_device (mxser_pcibrds[b].vendor, mxser_pcibrds[b].device, pdev); + pdev =pci_get_device (mxser_pcibrds[b].vendor, mxser_pcibrds[b].device, pdev);if (pdev ==NULL ) { b++;continue ;
drivers/char/rio/rio_linux.c +2 -2
@@ -1096,7 +1096,7 @@ static int __init rio_init(void)#ifdef CONFIG_PCI /* First look for the JET devices: */ -while ((pdev =pci_find_device (PCI_VENDOR_ID_SPECIALIX , +while ((pdev =pci_get_device (PCI_VENDOR_ID_SPECIALIX ,PCI_DEVICE_ID_SPECIALIX_SX_XIO_IO8 , pdev))) {if (pci_enable_device (pdev))continue ;
@@ -1170,7 +1170,7 @@ static int __init rio_init(void)*/ /* Then look for the older RIO/PCI devices: */ -while ((pdev =pci_find_device (PCI_VENDOR_ID_SPECIALIX , +while ((pdev =pci_get_device (PCI_VENDOR_ID_SPECIALIX ,PCI_DEVICE_ID_SPECIALIX_RIO , pdev))) {if (pci_enable_device (pdev))continue ;
drivers/char/rocket.c +1 -1
@@ -2154,7 +2154,7 @@ static int __init init_PCI(int boards_foint count =0 ;/* Work through the PCI device list, pulling out ours */ -while ((dev =pci_find_device (PCI_VENDOR_ID_RP ,PCI_ANY_ID , dev))) { +while ((dev =pci_get_device (PCI_VENDOR_ID_RP ,PCI_ANY_ID , dev))) {if (register_PCI (count + boards_found, dev)) count++; }
drivers/char/specialix.c +1 -1
@@ -2154,7 +2154,7 @@ static int __init specialix_init(void) i++;continue ; } - pdev =pci_find_device (PCI_VENDOR_ID_SPECIALIX , + pdev =pci_get_device (PCI_VENDOR_ID_SPECIALIX ,PCI_DEVICE_ID_SPECIALIX_IO8 , pdev);if (!pdev)break ;
drivers/char/stallion.c +1 -1
@@ -2757,7 +2757,7 @@ static inline int stl_findpcibrds(void)#endif for (i =0 ; (i < stl_nrpcibrds); i++) -while ((dev =pci_find_device (stl_pcibrds[i].vendid, +while ((dev =pci_get_device (stl_pcibrds[i].vendid, stl_pcibrds[i].devid, dev))) {/*
drivers/char/sx.c +1 -1
@@ -2423,7 +2423,7 @@ static int __init sx_init(void) }#ifdef CONFIG_PCI -while ((pdev =pci_find_device (PCI_VENDOR_ID_SPECIALIX , +while ((pdev =pci_get_device (PCI_VENDOR_ID_SPECIALIX ,PCI_DEVICE_ID_SPECIALIX_SX_XIO_IO8 , pdev))) {if (pci_enable_device (pdev))
drivers/char/watchdog/alim1535_wdt.c +2 -2
@@ -335,12 +335,12 @@ static int __init ali_find_watchdog(voidu32 wdog;/* Check for a 1535 series bridge */ - pdev =pci_find_device (PCI_VENDOR_ID_AL ,0x1535 ,NULL ); + pdev =pci_get_device (PCI_VENDOR_ID_AL ,0x1535 ,NULL );if (pdev ==NULL )return -ENODEV ;/* Check for the a 7101 PMU */ - pdev =pci_find_device (PCI_VENDOR_ID_AL ,0x7101 ,NULL ); + pdev =pci_get_device (PCI_VENDOR_ID_AL ,0x7101 ,NULL );if (pdev ==NULL )return -ENODEV ;
drivers/char/watchdog/alim7101_wdt.c +2 -2
@@ -347,7 +347,7 @@ static int __init alim7101_wdt_init(voidchar tmp; printk(KERN_INFO PFX "Steve Hill <[email protected]>.\n"); - alim7101_pmu =pci_find_device (PCI_VENDOR_ID_AL ,PCI_DEVICE_ID_AL_M7101 ,NULL ); + alim7101_pmu =pci_get_device (PCI_VENDOR_ID_AL ,PCI_DEVICE_ID_AL_M7101 ,NULL );if (!alim7101_pmu) { printk(KERN_INFO PFX "ALi M7101 PMU not present - WDT not set\n");return -EBUSY ;
@@ -356,7 +356,7 @@ static int __init alim7101_wdt_init(void/* Set the WDT in the PMU to 1 second */ pci_write_config_byte (alim7101_pmu,ALI_7101_WDT ,0x02 ); - ali1543_south =pci_find_device (PCI_VENDOR_ID_AL ,PCI_DEVICE_ID_AL_M1533 ,NULL ); + ali1543_south =pci_get_device (PCI_VENDOR_ID_AL ,PCI_DEVICE_ID_AL_M1533 ,NULL );if (!ali1543_south) { printk(KERN_INFO PFX "ALi 1543 South-Bridge not present - WDT not set\n");return -EBUSY ;
drivers/char/watchdog/i8xx_tco.c +1 -1
@@ -399,7 +399,7 @@ static unsigned char __init i8xx_tco_get* Find the PCI device */ -while ((dev =pci_find_device (PCI_ANY_ID ,PCI_ANY_ID , dev)) !=NULL ) { +while ((dev =pci_get_device (PCI_ANY_ID ,PCI_ANY_ID , dev)) !=NULL ) {if (pci_match_device (i8xx_tco_pci_tbl, dev)) { i8xx_tco_pci = dev;break ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 14 lines · Amit Gud
Remove deprecated
pci_find_deviceandpci_find_subsysAG
--
May the source be with youSigned-off-by Amit Gud <[email protected]>diff -uprN
orig/drivers/char/ip2main.clinux-2.6.11-rc3/drivers/char/ip2main.c
drivers/char/ip2main.c ip2_loadmain(int *iop, int *irqp, unsign · line 601
Quoted 8 lines
drivers/char/ip2main.c +1
-1@@ -595,7 +595,7 @@ ip2_loadmain(int *iop, int *irqp, unsign#ifdef CONFIG_PCI {struct pci_dev *pci_dev_i =NULL ; - pci_dev_i =pci_find_device (PCI_VENDOR_ID_COMPUTONE , + pci_dev_i =pci_get_device (PCI_VENDOR_ID_COMPUTONE ,PCI_DEVICE_ID_COMPUTONE_IP2EX , pci_dev_i);if (pci_dev_i !=NULL ) {unsigned int addr;
No, this is incorrect, please do not apply.
greg k-h
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors