feat: fstat now handle symbolic link
[lunaix-os.git] / lunaix-os / hal / rtc / mc146818a.c
index c36412a8d293aa2a2f55ab08db05db66a4cfee73..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();
 
     // 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;
     struct mc146818* state = valloc(sizeof(struct mc146818));
 
     state->rtc_context = rtc;