diff options
author | Liav A <liavalb@gmail.com> | 2021-09-11 14:36:35 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 01:44:19 +0200 |
commit | c181494b197b26861f88ef945afd87a86c9af363 (patch) | |
tree | 9262fae5b918b445524d6560be834d33ef9cc34d /Kernel/Bus | |
parent | 19276008529d638a504c2453cbddaf7c9936ec99 (diff) | |
download | serenity-c181494b197b26861f88ef945afd87a86c9af363.zip |
Kernel/SysFS: Move the PCI bus directory to the /sys/bus directory
The USB bus directory is already in /sys/bus directory, so I don't see a
reason why the PCI bus directory shouldn't be in that directory too.
Diffstat (limited to 'Kernel/Bus')
-rw-r--r-- | Kernel/Bus/PCI/SysFSPCI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Bus/PCI/SysFSPCI.cpp b/Kernel/Bus/PCI/SysFSPCI.cpp index 3a6e57dbfa..df08f7bedf 100644 --- a/Kernel/Bus/PCI/SysFSPCI.cpp +++ b/Kernel/Bus/PCI/SysFSPCI.cpp @@ -35,11 +35,11 @@ UNMAP_AFTER_INIT PCIDeviceSysFSDirectory::PCIDeviceSysFSDirectory(const SysFSDir UNMAP_AFTER_INIT void PCIBusSysFSDirectory::initialize() { auto pci_directory = adopt_ref(*new (nothrow) PCIBusSysFSDirectory()); - SysFSComponentRegistry::the().register_new_component(pci_directory); + SysFSComponentRegistry::the().register_new_bus_directory(pci_directory); } UNMAP_AFTER_INIT PCIBusSysFSDirectory::PCIBusSysFSDirectory() - : SysFSDirectory("pci", SysFSComponentRegistry::the().root_directory()) + : SysFSDirectory("pci", SysFSComponentRegistry::the().buses_directory()) { PCI::enumerate([&](const Address& address, ID) { auto pci_device = PCI::PCIDeviceSysFSDirectory::create(*this, address); |