X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/f044ca812256b421e793c4335ce1ffed74710a70..6f6da1abb22dff69dbb710bd2fd9d95f083f2b43:/lunaix-os/hal/timer/hwtimer.c 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