X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/c5552ad03973839d83d32d7108f20c00f192633b..5ba8709ee978e8a8c70e42f362a4934122a406ab:/target/linux/generic/files/drivers/char/gpio_dev.c diff --git a/target/linux/generic/files/drivers/char/gpio_dev.c b/target/linux/generic/files/drivers/char/gpio_dev.c index e6d5b1d05..0f428bd38 100644 --- a/target/linux/generic/files/drivers/char/gpio_dev.c +++ b/target/linux/generic/files/drivers/char/gpio_dev.c @@ -32,6 +32,7 @@ #include #include #include +#include #define DRVNAME "gpiodev" #define DEVNAME "gpio" @@ -42,8 +43,7 @@ static struct class *gpiodev_class; /* third argument of user space ioctl ('arg' here) contains the */ static int -gpio_ioctl(struct inode * inode, struct file * file, unsigned int cmd, - unsigned long arg) +gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { int retval = 0; @@ -114,7 +114,7 @@ gpio_close(struct inode * inode, struct file * file) } struct file_operations gpio_fops = { - ioctl: gpio_ioctl, + unlocked_ioctl: gpio_ioctl, open: gpio_open, release: gpio_close };