ahci: load AHCI as module

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-12 16:06:58 -04:00
commit cb2c3e1053
Signed by: michaelsshaw
GPG key ID: 5A5E0FB20708A9E7
6 changed files with 74 additions and 13 deletions

View file

@ -392,11 +392,8 @@ static int ahci_init_device(struct pci_device *device)
void ahci_init()
{
list_t dev_list;
list_create(&dev_list);
driver_register("ahci", DRIVER_PCI, ahci_init_device, NULL, pci_driver_class(1, 6, 1));
krdy("AHCI ready\n");
}
DRIVER_ENTRY_PRIORITY(ahci_init, 2);
DRIVER_ALIAS("pci:010601");