Hi,

the attached patch addresses the disfunctional gpioctl utility which relies on 
the gpio_dev module. It has to be put into the 
target/linux/generic/patches-$(kernel-version)/ folder for all kernels newer 
than 2.6.36. Once this is applied the ticket #9198 can be closed.

Cheers,
Marek
--- a/drivers/char/gpio_dev.c
+++ b/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 @@
 
 /* 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 @@
 }
 
 struct file_operations gpio_fops = {
-	ioctl:		gpio_ioctl,
+	unlocked_ioctl:	gpio_ioctl,
 	open:		gpio_open,
 	release:	gpio_close
 };
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to