1 --- a/Embedded/src/CAN/can_main.c
2 +++ b/Embedded/src/CAN/can_main.c
4 #include "can_main.h"
\r
5 #include "can_ioctl.h"
\r
7 +#include <linux/module.h>
10 MODULE_AUTHOR("Intel(R) Corporation");
\r
11 @@ -110,7 +111,7 @@ struct file_operations file_ops = {
12 .owner = THIS_MODULE,
\r
15 - .ioctl = can_dev_io,
\r
16 + .unlocked_ioctl = can_dev_io,
\r
18 .release = can_release
\r
20 @@ -594,8 +595,7 @@ int icp_can_reset(can_os_t *can_os)
21 /*****************************************************************************
\r
22 * Device IO control function. Used by user apps to configure CAN device.
\r
23 *****************************************************************************/
\r
24 -int can_dev_io(struct inode *inode, struct file *filp, unsigned int cmd,
\r
25 - unsigned long arg)
\r
26 +long can_dev_io(struct file *filp, unsigned int cmd, unsigned long arg)
\r
30 --- a/Embedded/src/CAN/can_main.h
31 +++ b/Embedded/src/CAN/can_main.h
32 @@ -157,8 +157,7 @@ ssize_t can_write(
37 - struct inode *inode,