From c181494b197b26861f88ef945afd87a86c9af363 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 11 Sep 2021 14:36:35 +0300 Subject: [PATCH] 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. --- Kernel/Bus/PCI/SysFSPCI.cpp | 4 ++-- 1 file 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);