I am trying to install pmcdx501 driver (the actual module 504) on ubuntu linux distribution
with kernel 2.6.38. Everything compiled except for the actual driver (devdx501).
The error is missing ioctl in the "file_operations". After doing some google search,
I learned kernel 2.6.36 or up removed ioctl, and I have to use unlock_ioctl, so the line 612 of devdx501.c
.ioctl = ioctl, /* ioctl */
.unlocked_ioctl = ioctl, /* ioctl */^M
And the function "ioctl" needs to be matched up with proper parameters, etc.
I tried to fix ioctl function in devdx501.c as much as I could, which now compiles and load up, but when I run the test program, it hangs and crashes the machine.
Do you have any patch for the driver to work with the recent kernels? Or any other suggestions?
Thanks in advance.