feat: fstat now handle symbolic link
[lunaix-os.git] / lunaix-os / hal / rtc / mc146818a.c
index e918ffdba83024aa0a578b608d62b3c0fea2b0fc..dce0a5179ad8386212d9552d1f417259c50a5a2e 100644 (file)
@@ -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,7 +216,7 @@ rtc_init(struct device_def* devdef)
 }
 
 static struct device_def devrtc_mc146818 = {
-    .name = "rtc_mc146818",
+    .name = "MC146818 RTC",
     .class = DEVCLASS(DEVIF_SOC, DEVFN_TIME, DEV_RTC, 1),
     .init = rtc_init
 };