| 843 | } |
| 844 | |
| 845 | rt_err_t rt_pci_host_bridge_remove(struct rt_pci_host_bridge *host_bridge) |
| 846 | { |
| 847 | rt_err_t err = RT_EOK; |
| 848 | |
| 849 | if (host_bridge && host_bridge->root_bus) |
| 850 | { |
| 851 | rt_pci_enum_device(host_bridge->root_bus, pci_remove_bus_device, RT_NULL); |
| 852 | host_bridge->root_bus = RT_NULL; |
| 853 | } |
| 854 | else |
| 855 | { |
| 856 | err = -RT_EINVAL; |
| 857 | } |
| 858 | |
| 859 | return err; |
| 860 | } |
| 861 | |
| 862 | rt_err_t rt_pci_bus_remove(struct rt_pci_bus *bus) |
| 863 | { |
no test coverage detected