[PATCH] pci: remove deprecates
Replace pci_find_device() with more safer pci_get_device(). Signed-off-by: Amit Gud <gud@eth.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
881a8c120a
commit
efe1ec2783
|
@ -1095,7 +1095,7 @@ static int __init rio_init(void)
|
||||||
|
|
||||||
#ifdef CONFIG_PCI
|
#ifdef CONFIG_PCI
|
||||||
/* First look for the JET devices: */
|
/* 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,
|
PCI_DEVICE_ID_SPECIALIX_SX_XIO_IO8,
|
||||||
pdev))) {
|
pdev))) {
|
||||||
if (pci_enable_device(pdev)) continue;
|
if (pci_enable_device(pdev)) continue;
|
||||||
|
@ -1169,7 +1169,7 @@ static int __init rio_init(void)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Then look for the older RIO/PCI devices: */
|
/* 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,
|
PCI_DEVICE_ID_SPECIALIX_RIO,
|
||||||
pdev))) {
|
pdev))) {
|
||||||
if (pci_enable_device(pdev)) continue;
|
if (pci_enable_device(pdev)) continue;
|
||||||
|
|
Loading…
Reference in New Issue