mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
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.
This commit is contained in:
parent
1927600852
commit
c181494b19
1 changed files with 2 additions and 2 deletions
|
@ -35,11 +35,11 @@ UNMAP_AFTER_INIT PCIDeviceSysFSDirectory::PCIDeviceSysFSDirectory(const SysFSDir
|
||||||
UNMAP_AFTER_INIT void PCIBusSysFSDirectory::initialize()
|
UNMAP_AFTER_INIT void PCIBusSysFSDirectory::initialize()
|
||||||
{
|
{
|
||||||
auto pci_directory = adopt_ref(*new (nothrow) PCIBusSysFSDirectory());
|
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()
|
UNMAP_AFTER_INIT PCIBusSysFSDirectory::PCIBusSysFSDirectory()
|
||||||
: SysFSDirectory("pci", SysFSComponentRegistry::the().root_directory())
|
: SysFSDirectory("pci", SysFSComponentRegistry::the().buses_directory())
|
||||||
{
|
{
|
||||||
PCI::enumerate([&](const Address& address, ID) {
|
PCI::enumerate([&](const Address& address, ID) {
|
||||||
auto pci_device = PCI::PCIDeviceSysFSDirectory::create(*this, address);
|
auto pci_device = PCI::PCIDeviceSysFSDirectory::create(*this, address);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue