Commit c1d746dd authored by Hanna V. Linder's avatar Hanna V. Linder Committed by Greg Kroah-Hartman

[PATCH] mcpn765.c: replace pci_find_device with pci_get_device

As pci_find_device is going away I've replaced it with pci_get_device
and pci_dev_put.
Signed-off-by: default avatarHanna Linder <hannal@us.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 44be43c6
...@@ -185,7 +185,7 @@ mcpn765_setup_via_82c586b(void) ...@@ -185,7 +185,7 @@ mcpn765_setup_via_82c586b(void)
struct pci_dev *dev; struct pci_dev *dev;
u_char c; u_char c;
if ((dev = pci_find_device(PCI_VENDOR_ID_VIA, if ((dev = pci_get_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_82C586_0, PCI_DEVICE_ID_VIA_82C586_0,
NULL)) == NULL) { NULL)) == NULL) {
printk("No VIA ISA bridge found\n"); printk("No VIA ISA bridge found\n");
...@@ -209,8 +209,8 @@ mcpn765_setup_via_82c586b(void) ...@@ -209,8 +209,8 @@ mcpn765_setup_via_82c586b(void)
pci_write_config_dword(dev, 0x54, 0); pci_write_config_dword(dev, 0x54, 0);
pci_write_config_byte(dev, 0x58, 0); pci_write_config_byte(dev, 0x58, 0);
pci_dev_put(dev);
if ((dev = pci_find_device(PCI_VENDOR_ID_VIA, if ((dev = pci_get_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_82C586_1, PCI_DEVICE_ID_VIA_82C586_1,
NULL)) == NULL) { NULL)) == NULL) {
printk("No VIA ISA bridge found\n"); printk("No VIA ISA bridge found\n");
...@@ -225,6 +225,7 @@ mcpn765_setup_via_82c586b(void) ...@@ -225,6 +225,7 @@ mcpn765_setup_via_82c586b(void)
pci_read_config_byte(dev, 0x40, &c); pci_read_config_byte(dev, 0x40, &c);
c |= 0x03; c |= 0x03;
pci_write_config_byte(dev, 0x40, c); pci_write_config_byte(dev, 0x40, c);
pci_dev_put(dev);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment