feat: owloysius - dynamic init function invocator
[lunaix-os.git] / lunaix-os / hal / timer / timer_device.c
index c5341bed3886db14fe60e4e5c5f460c1ff61a4c1..3e47fac5f088b58cc2c6798e1d45cbc3faa117ac 100644 (file)
@@ -62,5 +62,5 @@ hwtimer_init(u32_t hertz, void* tick_callback)
 
     timerdev->ops.exec_cmd = __hwtimer_ioctl;
 
-    device_register(timerdev, &hwt_ctx->class, hwt_ctx->name);
+    register_device(timerdev, &hwt_ctx->class, hwt_ctx->name);
 }
\ No newline at end of file