drivers/char/rocket.c : replace pci_find_device by
Subsystems (2)
PATCH 1/1 drivers/char/rocket.c : replace pci_find_device by
From: trem <[email protected]>
This patch simply change pci_find_device by pci_get_device, because pci_find_device is deprecated. No pci_dev_put is needed because the loop isn't broken, and pci_get_device decrement the counter of the device given as from parameter.
---
drivers/char/rocket.c +1 -1
@@ -2230,7 +2230,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++; }
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 8 lines · trem
From: trem <[email protected]>
This patch simply change
pci_find_devicebypci_get_device, becausepci_find_deviceis deprecated. Nopci_dev_putis needed because the loop isn't broken, andpci_get_devicedecrement the counter of the device given as from parameter.Signed-off-by trem <[email protected]>
No, this driver should be switched to the proper pci_register_driver() api instead.
thanks,
greg k-h
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors