X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/f044ca812256b421e793c4335ce1ffed74710a70..8c06c883e7b13c115d5ff207f79d4b68fccd5ad6:/lunaix-os/hal/rtc/mc146818a.c diff --git a/lunaix-os/hal/rtc/mc146818a.c b/lunaix-os/hal/rtc/mc146818a.c index e918ffd..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; @@ -216,8 +216,8 @@ rtc_init(struct device_def* devdef) } static struct device_def devrtc_mc146818 = { - .name = "rtc_mc146818", - .class = DEVCLASS(DEVIF_SOC, DEVFN_TIME, DEV_RTC, 1), + .name = "MC146818 RTC", + .class = DEVCLASS(DEVIF_SOC, DEVFN_TIME, DEV_RTC), .init = rtc_init }; EXPORT_DEVICE(mc146818, &devrtc_mc146818, load_earlystage); \ No newline at end of file