X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/8efc0cf32160c68772a2ce1887e6a397852d3d96..6f6da1abb22dff69dbb710bd2fd9d95f083f2b43:/lunaix-os/hal/timer/hwtimer.c?ds=inline diff --git a/lunaix-os/hal/timer/hwtimer.c b/lunaix-os/hal/timer/hwtimer.c index 1a994f7..4da1568 100644 --- a/lunaix-os/hal/timer/hwtimer.c +++ b/lunaix-os/hal/timer/hwtimer.c @@ -58,7 +58,8 @@ hwtimer_init(u32_t hertz, void* tick_callback) current_timer = hwt_ctx; - struct device* timerdev = device_addsys(NULL, hwt_ctx, hwt_ctx->name); + struct device* timerdev = + device_addsys(NULL, &hwt_ctx->class, hwt_ctx, hwt_ctx->name); timerdev->ops.exec_cmd = __hwtimer_ioctl; } \ No newline at end of file