OSDN Git Service
tp_smapi/hdaps: use timer_setup() with kernel 4.15 and later
Fixes the following building error happening with kernel 4.15:
CC [M] .../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.o
.../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.c: In function 'hdaps_init':
.../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.c:782:2:
error: implicit declaration of function 'init_timer' [-Werror=implicit-function-declaration]
init_timer(&hdaps_timer);
^
.../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.c:783:23:
warning: assignment from incompatible pointer type
hdaps_timer.function = hdaps_mousedev_poll;
^
cc1: some warnings being treated as errors