pci: set auto-incremented bus number
When using more than one PCI bus, we have to assign unique numbers
to each bus. Use an auto-incremented bus index and assign it to
each registered bus. Also, allow the PCI host controller to update
internal registers by calling set_busno with assigned bus number.

While at it, add pci_controller struct to set_busno callback,
add a back reference to pci_controller to pci_bus, and clean up
unused left-overs from Linux import.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e5a91ee commit 916ca9472fb322f79e9814aa9fc04e504ab0e792
@Sebastian Hesselbarth Sebastian Hesselbarth authored on 30 Jul 2014
Sascha Hauer committed on 31 Jul 2014
Showing 2 changed files
View
drivers/pci/pci.c
View
include/linux/pci.h