mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	Kernel/PCI: Remove Address from enumeration callback
If we need that address, we can always get it from the DeviceIdentifier.
This commit is contained in:
		
							parent
							
								
									a411a44fda
								
							
						
					
					
						commit
						9d9d57056e
					
				
					 13 changed files with 27 additions and 30 deletions
				
			
		|  | @ -41,8 +41,8 @@ UNMAP_AFTER_INIT void PCIBusSysFSDirectory::initialize() | |||
| UNMAP_AFTER_INIT PCIBusSysFSDirectory::PCIBusSysFSDirectory() | ||||
|     : SysFSDirectory("pci", SysFSComponentRegistry::the().buses_directory()) | ||||
| { | ||||
|     PCI::enumerate([&](const Address& address, DeviceIdentifier const&) { | ||||
|         auto pci_device = PCI::PCIDeviceSysFSDirectory::create(*this, address); | ||||
|     PCI::enumerate([&](DeviceIdentifier const& device_identifier) { | ||||
|         auto pci_device = PCI::PCIDeviceSysFSDirectory::create(*this, device_identifier.address()); | ||||
|         m_components.append(pci_device); | ||||
|     }); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Liav A
						Liav A