diff options
Diffstat (limited to 'arch/arm/mach-ixp2000/ixdp2x00.c')
-rw-r--r-- | arch/arm/mach-ixp2000/ixdp2x00.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-ixp2000/ixdp2x00.c b/arch/arm/mach-ixp2000/ixdp2x00.c index af48cb52dfc4..aa2655092d2d 100644 --- a/arch/arm/mach-ixp2000/ixdp2x00.c +++ b/arch/arm/mach-ixp2000/ixdp2x00.c | |||
@@ -241,11 +241,14 @@ void ixdp2x00_slave_pci_postinit(void) | |||
241 | /* | 241 | /* |
242 | * Remove PMC device is there is one | 242 | * Remove PMC device is there is one |
243 | */ | 243 | */ |
244 | if((dev = pci_find_slot(1, IXDP2X00_PMC_DEVFN))) | 244 | if((dev = pci_get_bus_and_slot(1, IXDP2X00_PMC_DEVFN))) { |
245 | pci_remove_bus_device(dev); | 245 | pci_remove_bus_device(dev); |
246 | pci_dev_put(dev); | ||
247 | } | ||
246 | 248 | ||
247 | dev = pci_find_slot(0, IXDP2X00_21555_DEVFN); | 249 | dev = pci_get_bus_and_slot(0, IXDP2X00_21555_DEVFN); |
248 | pci_remove_bus_device(dev); | 250 | pci_remove_bus_device(dev); |
251 | pci_dev_put(dev); | ||
249 | } | 252 | } |
250 | 253 | ||
251 | /************************************************************************** | 254 | /************************************************************************** |