replace pci_find_device with pci_get_device in
PATCH 1/1 replace pci_find_device with pci_get_device in
From: trem <[email protected]>
This patch simply replaces pci_find_device by pci_get_device, because pci_find_device is deprecated. pci_dev_put has been added to decrement the counter, so unload could be done.
Signed-off-by trem <[email protected]>
---
arch/i386/kernel/cpu/cpufreq/longhaul.c +3 -2
@@ -578,11 +578,11 @@ static int enable_arbiter_disable(void)/* Find PLE133 host bridge */ reg =0x78 ; - dev =pci_find_device (PCI_VENDOR_ID_VIA ,PCI_DEVICE_ID_VIA_8601_0 ,NULL ); + dev =pci_get_device (PCI_VENDOR_ID_VIA ,PCI_DEVICE_ID_VIA_8601_0 ,NULL );/* Find CLE266 host bridge */ if (dev ==NULL ) { reg =0x76 ; - dev =pci_find_device (PCI_VENDOR_ID_VIA ,PCI_DEVICE_ID_VIA_862X_0 ,NULL ); + dev =pci_get_device (PCI_VENDOR_ID_VIA ,PCI_DEVICE_ID_VIA_862X_0 ,NULL ); }if (dev !=NULL ) {/* Enable access to port 0x22 */
@@ -591,6 +591,7 @@ static int enable_arbiter_disable(void) pci_cmd |=1 <<7 ;pci_write_config_byte (dev, reg, pci_cmd); } +pci_dev_put (dev);return 1 ; }return 0 ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors