driver: load driver file by alias only
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
0aec18db63
commit
20905ec95f
6 changed files with 69 additions and 39 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#include <lib/endian.h>
|
||||
|
||||
#define SPIN_MAX 2000
|
||||
#define AHCI_ALIAS "pci:010601"
|
||||
|
||||
static uint8_t sata_device_count = 0;
|
||||
static uint8_t cd_device_count = 0;
|
||||
|
|
@ -392,8 +393,8 @@ static int ahci_init_device(struct pci_device *device)
|
|||
|
||||
void ahci_init()
|
||||
{
|
||||
driver_register("ahci", DRIVER_PCI, ahci_init_device, NULL, pci_driver_class(1, 6, 1));
|
||||
driver_register("ahci", DRIVER_PCI, ahci_init_device, NULL, AHCI_ALIAS);
|
||||
krdy("AHCI ready\n");
|
||||
}
|
||||
DRIVER_ENTRY_PRIORITY(ahci_init, 2);
|
||||
DRIVER_ALIAS("pci:010601");
|
||||
DRIVER_ALIAS(AHCI_ALIAS);
|
||||
|
|
|
|||
Loading…
Reference in a new issue