mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:38:11 +00:00
Kernel/PCI: Make SATAProgIF comparable with ProgrammingInterface
This makes checking it a bit nicer
This commit is contained in:
parent
d64d03e0d6
commit
cfba182b61
2 changed files with 2 additions and 1 deletions
|
@ -120,7 +120,7 @@ UNMAP_AFTER_INIT void StorageManagement::enumerate_pci_controllers(bool force_pi
|
|||
#endif
|
||||
|
||||
if (subclass_code == SubclassID::SATAController
|
||||
&& device_identifier.prog_if().value() == to_underlying(PCI::MassStorage::SATAProgIF::AHCI)) {
|
||||
&& device_identifier.prog_if() == PCI::MassStorage::SATAProgIF::AHCI) {
|
||||
if (auto ahci_controller_or_error = AHCIController::initialize(device_identifier); !ahci_controller_or_error.is_error())
|
||||
m_controllers.append(ahci_controller_or_error.value());
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue