diff options
Diffstat (limited to 'arch/alpha/kernel/pci.c')
-rw-r--r-- | arch/alpha/kernel/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c index ffb7d5423cc0..3c10b9a1ddf5 100644 --- a/arch/alpha/kernel/pci.c +++ b/arch/alpha/kernel/pci.c | |||
@@ -516,10 +516,11 @@ sys_pciconfig_iobase(long which, unsigned long bus, unsigned long dfn) | |||
516 | if (bus == 0 && dfn == 0) { | 516 | if (bus == 0 && dfn == 0) { |
517 | hose = pci_isa_hose; | 517 | hose = pci_isa_hose; |
518 | } else { | 518 | } else { |
519 | dev = pci_find_slot(bus, dfn); | 519 | dev = pci_get_bus_and_slot(bus, dfn); |
520 | if (!dev) | 520 | if (!dev) |
521 | return -ENODEV; | 521 | return -ENODEV; |
522 | hose = dev->sysdata; | 522 | hose = dev->sysdata; |
523 | pci_dev_put(dev); | ||
523 | } | 524 | } |
524 | } | 525 | } |
525 | 526 | ||