recalbox / mk_arcade_joystick_rpi

Raspberry PI kernel module for arcade joystick on GPIO and MCP23017

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

#62

The changes described here worked for me.