[PATCH] alpha: switch to pci_get API
Now that we have pci_get_bus_and_slot we can do the job correctly. Note that some of these calls intentionally leak a device - this is because the device in question is always needed from boot to reboot. Signed-off-by: Alan Cox <alan@redhat.com> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@ -200,7 +200,7 @@ nautilus_init_pci(void)
|
||||
bus = pci_scan_bus(0, alpha_mv.pci_ops, hose);
|
||||
hose->bus = bus;
|
||||
|
||||
irongate = pci_find_slot(0, 0);
|
||||
irongate = pci_get_bus_and_slot(0, 0);
|
||||
bus->self = irongate;
|
||||
bus->resource[1] = &irongate_mem;
|
||||
|
||||
|
Reference in New Issue
Block a user