The ioctl has been changed for a reason and it would be best if you
follow the kernel changes in your driver too. You can not use drivers
compiled for one version in another.
The change is not too difficult one.
In the fops structure change
and in the ioctl function in your driver, do not pass the
inode pointer. That is all, the rest of the code can remain
see this tutorial for more details