Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup_timer needs to be replaced by timer_setup #73

Open
phil123456 opened this issue Aug 6, 2019 · 2 comments
Open

setup_timer needs to be replaced by timer_setup #73

phil123456 opened this issue Aug 6, 2019 · 2 comments

Comments

@phil123456
Copy link

phil123456 commented Aug 6, 2019

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
Copy link

brunopinheiro commented Aug 15, 2019

#62

The changes described here worked for me.

@jclauzel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants