summaryrefslogtreecommitdiffstats
path: root/package/ep80579-drivers/patches/713-3.3-gpio-fixes.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-05-18 20:10:33 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-05-18 20:10:33 +0000
commitd9dab97d38ff0e24aa26d9c6ac123381c008db99 (patch)
treebcb9e9c129c66d79670c8f78e7c16d61780bb89f /package/ep80579-drivers/patches/713-3.3-gpio-fixes.patch
parent7217afc657789e0457fb065657bc757e897d5175 (diff)
downloadmaster-31e0f0ae-d9dab97d38ff0e24aa26d9c6ac123381c008db99.tar.gz
master-31e0f0ae-d9dab97d38ff0e24aa26d9c6ac123381c008db99.tar.bz2
master-31e0f0ae-d9dab97d38ff0e24aa26d9c6ac123381c008db99.zip
x86/ep80579: switch to 3.3
Also fix build errors in the ep80579-drivers package. Compile tested only. SVN-Revision: 31802
Diffstat (limited to 'package/ep80579-drivers/patches/713-3.3-gpio-fixes.patch')
-rw-r--r--package/ep80579-drivers/patches/713-3.3-gpio-fixes.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/ep80579-drivers/patches/713-3.3-gpio-fixes.patch b/package/ep80579-drivers/patches/713-3.3-gpio-fixes.patch
new file mode 100644
index 0000000000..47fb920d0a
--- /dev/null
+++ b/package/ep80579-drivers/patches/713-3.3-gpio-fixes.patch
@@ -0,0 +1,33 @@
+--- a/Embedded/src/GPIO/gpio.h
++++ b/Embedded/src/GPIO/gpio.h
+@@ -121,8 +121,7 @@ int gpio_init(void);
+ void gpio_close(void);
+ int gpio_open(struct inode *inode, struct file *filp);
+ int gpio_release(struct inode *inode, struct file *filp);
+-int gpio_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
+- unsigned long arg);
++long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
+
+ // private driver functions
+ int gpio_getpininfo(int Signal, char *pBuff);
+@@ -134,7 +133,7 @@ struct file_operations file_ops =
+ .owner = THIS_MODULE,
+ .open = gpio_open,
+ .release = gpio_release,
+- .ioctl = gpio_ioctl,
++ .unlocked_ioctl = gpio_ioctl,
+ };
+
+ #endif
+--- a/Embedded/src/GPIO/gpio_ref.c
++++ b/Embedded/src/GPIO/gpio_ref.c
+@@ -251,8 +251,7 @@ int gpio_release(struct inode *inode, st
+ 0 => success
+ < 0 => error
+ ******************************************************************************/
+-int gpio_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
+- unsigned long arg)
++long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
+ {
+ gpio_ioctl_t Info;
+ u_int bitstr = 0;