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

[PATCH] lopec.c: replace pci_find_device with pci_get_device

As pci_find_device is going away I have replaced this call with
pci_get_device.
Signed-off-by: default avatarHanna Linder <hannal@us.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 48bc3d9b
...@@ -189,7 +189,7 @@ static unsigned long lopec_idedma_regbase; ...@@ -189,7 +189,7 @@ static unsigned long lopec_idedma_regbase;
static void static void
lopec_ide_probe(void) lopec_ide_probe(void)
{ {
struct pci_dev *dev = pci_find_device(PCI_VENDOR_ID_WINBOND, struct pci_dev *dev = pci_get_device(PCI_VENDOR_ID_WINBOND,
PCI_DEVICE_ID_WINBOND_82C105, PCI_DEVICE_ID_WINBOND_82C105,
NULL); NULL);
lopec_ide_ports_known = 1; lopec_ide_ports_known = 1;
...@@ -200,6 +200,7 @@ lopec_ide_probe(void) ...@@ -200,6 +200,7 @@ lopec_ide_probe(void)
lopec_ide_ctl_regbase[0] = dev->resource[1].start; lopec_ide_ctl_regbase[0] = dev->resource[1].start;
lopec_ide_ctl_regbase[1] = dev->resource[3].start; lopec_ide_ctl_regbase[1] = dev->resource[3].start;
lopec_idedma_regbase = dev->resource[4].start; lopec_idedma_regbase = dev->resource[4].start;
pci_dev_put(dev);
} }
} }
......
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