diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-01 03:20:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-07-01 03:20:13 +0000 |
commit | a41f80bca1ea529feec8b02425574ae3f5c8a6ab (patch) | |
tree | abdca2c48de8ce65050d59d3af34d4f09d408481 /target/linux/generic/files | |
parent | 07abf4a81e88b8ee42d2bb79d4abf2250d098d78 (diff) | |
download | mtk-20170518-a41f80bca1ea529feec8b02425574ae3f5c8a6ab.zip mtk-20170518-a41f80bca1ea529feec8b02425574ae3f5c8a6ab.tar.gz mtk-20170518-a41f80bca1ea529feec8b02425574ae3f5c8a6ab.tar.bz2 |
fix the gpio_dev driver: remove existing forward port patches, use unlocked_ioctl on all platforms and fix the arguments to the ioctl handler (based on patch from #9198)
SVN-Revision: 27322
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r-- | target/linux/generic/files/drivers/char/gpio_dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/files/drivers/char/gpio_dev.c b/target/linux/generic/files/drivers/char/gpio_dev.c index e6d5b1d..0f428bd 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 <linux/device.h> #include <linux/platform_device.h> #include <linux/gpio_dev.h> +#include <linux/fs.h> #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 <pin> */ 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 }; |