diff options
Diffstat (limited to 'drivers/pci/host/pci-host-common.c')
-rw-r--r-- | drivers/pci/host/pci-host-common.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/pci/host/pci-host-common.c b/drivers/pci/host/pci-host-common.c index 5d028f53fdcd..d8f10451f273 100644 --- a/drivers/pci/host/pci-host-common.c +++ b/drivers/pci/host/pci-host-common.c | |||
@@ -101,5 +101,18 @@ int pci_host_common_probe(struct platform_device *pdev, | |||
101 | return ret; | 101 | return ret; |
102 | } | 102 | } |
103 | 103 | ||
104 | platform_set_drvdata(pdev, bridge->bus); | ||
105 | return 0; | ||
106 | } | ||
107 | |||
108 | int pci_host_common_remove(struct platform_device *pdev) | ||
109 | { | ||
110 | struct pci_bus *bus = platform_get_drvdata(pdev); | ||
111 | |||
112 | pci_lock_rescan_remove(); | ||
113 | pci_stop_root_bus(bus); | ||
114 | pci_remove_root_bus(bus); | ||
115 | pci_unlock_rescan_remove(); | ||
116 | |||
104 | return 0; | 117 | return 0; |
105 | } | 118 | } |