mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-10 12:51:34 +00:00
parent
b8798fc026
commit
b4e86cc499
@ -42,7 +42,16 @@ class Ahci_driver : public Ahci_pci_connection,
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
Ahci_driver() : Ahci_driver_base(Ahci_device::probe(_pci)) { }
|
||||
Ahci_driver() : Ahci_driver_base(nullptr) {
|
||||
Ahci_device * device = Ahci_device::probe(_pci);
|
||||
|
||||
if (!device) {
|
||||
PWRN("Could not find ahci device");
|
||||
throw Root::Unavailable();
|
||||
}
|
||||
|
||||
_device = device;
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* _AHCI_DRIVER_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user