diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-10-16 11:49:50 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-10-17 12:19:59 -0400 |
commit | 7281c248f797723f66244b7ecef204620f664648 (patch) | |
tree | 1d1c3d5ebfb3a1b51b82fcffc3f9832998493df2 /arch/arm/mach-ixp2000/ixdp2x00.c | |
parent | 0f6f65f607b6d516fa001e8cdf5a2618c81372f5 (diff) |
[ARM] switch to new pci_get_bus_and_slot API
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
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 | /************************************************************************** |