1 --- a/Embedded/src/GPIO/gpio.h
2 +++ b/Embedded/src/GPIO/gpio.h
3 @@ -121,8 +121,7 @@ int gpio_init(void);
5 int gpio_open(struct inode *inode, struct file *filp);
6 int gpio_release(struct inode *inode, struct file *filp);
7 -int gpio_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
9 +long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
11 // private driver functions
12 int gpio_getpininfo(int Signal, char *pBuff);
13 @@ -134,7 +133,7 @@ struct file_operations file_ops =
16 .release = gpio_release,
17 - .ioctl = gpio_ioctl,
18 + .unlocked_ioctl = gpio_ioctl,
22 --- a/Embedded/src/GPIO/gpio_ref.c
23 +++ b/Embedded/src/GPIO/gpio_ref.c
24 @@ -251,8 +251,7 @@ int gpio_release(struct inode *inode, st
27 ******************************************************************************/
28 -int gpio_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
30 +long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)