|
@@ -101,5 +101,18 @@ int pci_host_common_probe(struct platform_device *pdev,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+ platform_set_drvdata(pdev, bridge->bus);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+int pci_host_common_remove(struct platform_device *pdev)
|
|
|
+{
|
|
|
+ struct pci_bus *bus = platform_get_drvdata(pdev);
|
|
|
+
|
|
|
+ pci_lock_rescan_remove();
|
|
|
+ pci_stop_root_bus(bus);
|
|
|
+ pci_remove_root_bus(bus);
|
|
|
+ pci_unlock_rescan_remove();
|
|
|
+
|
|
|
return 0;
|
|
|
}
|