X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/6123a1b5c5c97d90224ffa0dc6706dd7af2ebb9e..6942ebae59c3904674dce6b67cd07c43a3bbe00d:/lunaix-os/hal/acpi/acpi.c diff --git a/lunaix-os/hal/acpi/acpi.c b/lunaix-os/hal/acpi/acpi.c index bc90ba1..b4faf63 100644 --- a/lunaix-os/hal/acpi/acpi.c +++ b/lunaix-os/hal/acpi/acpi.c @@ -1,6 +1,6 @@ #include -#include +#include #include #include #include @@ -68,7 +68,7 @@ acpi_locate_rsdp() } static int -acpi_init(struct device_def* devdef) +__gather_acpi_table() { acpi_rsdp_t* rsdp = acpi_locate_rsdp(); @@ -105,8 +105,4 @@ acpi_init(struct device_def* devdef) return 0; } -struct device_def acpi_sysdev = { .name = "ACPI Proxy", - .class = - DEVCLASS(DEVIF_FMW, DEVFN_CFG, DEV_ACPI), - .init = acpi_init }; -EXPORT_DEVICE(acpi, &acpi_sysdev, load_sysconf); \ No newline at end of file +owloysius_fetch_init(__gather_acpi_table, on_sysconf); \ No newline at end of file