X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/8fce4520de1f257819b16f9253fa28dcdae743f4..0f73e6cc9945f9b4a074bb62b9708d1751fa3723:/lunaix-os/hal/rtc/mc146818a.c diff --git a/lunaix-os/hal/rtc/mc146818a.c b/lunaix-os/hal/rtc/mc146818a.c index c36412a..6b64527 100644 --- a/lunaix-os/hal/rtc/mc146818a.c +++ b/lunaix-os/hal/rtc/mc146818a.c @@ -195,7 +195,7 @@ rtc_init(struct device_def* devdef) // Make sure the rtc timer is disabled by default rtc_disable_timer(); - struct hwrtc* rtc = hwrtc_alloc_new("mc146818"); + struct hwrtc* rtc = hwrtc_alloc_new(devdef, "mc146818"); struct mc146818* state = valloc(sizeof(struct mc146818)); state->rtc_context = rtc; @@ -217,7 +217,7 @@ rtc_init(struct device_def* devdef) static struct device_def devrtc_mc146818 = { .name = "MC146818 RTC", - .class = DEVCLASS(DEVIF_SOC, DEVFN_TIME, DEV_RTC, 1), + .class = DEVCLASS(DEVIF_SOC, DEVFN_TIME, DEV_RTC), .init = rtc_init }; EXPORT_DEVICE(mc146818, &devrtc_mc146818, load_earlystage); \ No newline at end of file