mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
[PATCH] yenta: share code with PCI core
Share code between setup-bus.c and yenta_socket.c: use the write-out code of resources to the bridge also in yenta_socket.c, as it provides useful debug output. In addition, it fixes the bug that the CPU-centric resource view might need to be transferred to the PCI-centric view: setup-bus.c does that, while yenta-socket.c did not. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
76fa82fb71
commit
b3743fa444
3 changed files with 21 additions and 25 deletions
|
@ -77,8 +77,7 @@ pbus_assign_resources_sorted(struct pci_bus *bus)
|
|||
}
|
||||
}
|
||||
|
||||
static void __devinit
|
||||
pci_setup_cardbus(struct pci_bus *bus)
|
||||
void pci_setup_cardbus(struct pci_bus *bus)
|
||||
{
|
||||
struct pci_dev *bridge = bus->self;
|
||||
struct pci_bus_region region;
|
||||
|
@ -130,6 +129,7 @@ pci_setup_cardbus(struct pci_bus *bus)
|
|||
region.end);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(pci_setup_cardbus);
|
||||
|
||||
/* Initialize bridges with base/limit values we have collected.
|
||||
PCI-to-PCI Bridge Architecture Specification rev. 1.1 (1998)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue