PCI: add generic device into pci_host_bridge struct
authorYinghai Lu <yinghai@kernel.org>
Tue, 3 Apr 2012 01:31:53 +0000 (18:31 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 30 Apr 2012 19:53:42 +0000 (13:53 -0600)
commit7b54366358008241f88228f02cc80ab352265eac
tree4de6ae8ce83afabf1b4405cba6895b09d1bc790d
parent459f58ce51e2e11235b7bb4b1732ebf3c17d86f7
PCI: add generic device into pci_host_bridge struct

Use that device for pci_root_bus bridge pointer.

Use pci_release_bus_bridge_dev() to release allocated pci_host_bridge in
remove path.

Use root bus bridge pointer to get host bridge pointer instead of searching
host bridge list.  That leaves the host bridge list unused, so remove it.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host-bridge.c
drivers/pci/pci.h
drivers/pci/probe.c
include/linux/pci.h