X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/a8b800d1691263aa73054449b1721c1ec9516496..0f73e6cc9945f9b4a074bb62b9708d1751fa3723:/lunaix-os/hal/ahci/ahci.c?ds=sidebyside diff --git a/lunaix-os/hal/ahci/ahci.c b/lunaix-os/hal/ahci/ahci.c index 2aa37e5..61ea95b 100644 --- a/lunaix-os/hal/ahci/ahci.c +++ b/lunaix-os/hal/ahci/ahci.c @@ -200,7 +200,7 @@ ahci_driver_init(struct device_def* def, struct device* dev) ahci_register_device(hbadev); } - dev->underlay = ahci_drv; + pci_bind_instance(ahci_dev, ahci_drv); return 0; } @@ -447,6 +447,6 @@ static struct pci_device_def ahcidef = { .ident_mask = PCI_MATCH_ANY, .devdef = { .class = DEVCLASS(DEVIF_PCI, DEVFN_STORAGE, DEV_SATA), .name = "Serial ATA Controller", - .init_for = ahci_driver_init } + .bind = ahci_driver_init } }; EXPORT_PCI_DEVICE(ahci, &ahcidef); \ No newline at end of file