setup_timer needs to be replaced by timer_setup
phil123456 opened this issue · comments
Hello,
I tried to compile the driver but apparently setup_timer is deprecated
error: implicit declaration of function ‘setup_timer’; did you mean ‘del_timer’? [-Werror=implicit-function-declaration] setup_timer(&mk->timer, mk_timer, (long) mk); ^~~~~~~~~~~ del_timer
how can I fix this ?
I tried using timer_setup but the parameters are way different
also "gpio" appearas not to be defined
error: ‘gpio’ undeclared (first use in this function)
thanks
The changes described here worked for me.
Made a fork to fix this here: https://github.com/jclauzel/mk_arcade_joystick_rpi the following should work:
sudo git clone https://github.com/jclauzel/mk_arcade_joystick_rpi.git