X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/99f2ed669601a61f4f0210e0b481ff877cd9bea7..35a7d633d3f16c1e0539af6ca5d8e7482926cd93:/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