recalbox / mk_arcade_joystick_rpi

Raspberry PI kernel module for arcade joystick on GPIO and MCP23017
GNU General Public License v2.0
200 stars 120 forks source link

setup_timer needs to be replaced by timer_setup #73

Open phil123456 opened 5 years ago

phil123456 commented 5 years ago

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

brunopinheiro commented 5 years ago

https://github.com/recalbox/mk_arcade_joystick_rpi/issues/62

The changes described here worked for me.

jclauzel commented 4 years ago

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