aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/files/drivers
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-07-05 21:32:44 +0000
committerJonas Gorski <jogo@openwrt.org>2015-07-05 21:32:44 +0000
commit7f3182da169223b848d6b4c9a34c3d650de32312 (patch)
tree581c224dfe199a248cb2eab1b0aa83cf8e992755 /target/linux/ar7/files/drivers
parent62cdc72fb87773188e761e6ebde2c104831b6a64 (diff)
downloadupstream-7f3182da169223b848d6b4c9a34c3d650de32312.tar.gz
upstream-7f3182da169223b848d6b4c9a34c3d650de32312.tar.bz2
upstream-7f3182da169223b848d6b4c9a34c3d650de32312.zip
ar7: add linux 4.1 support
Compile tested only. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46186
Diffstat (limited to 'target/linux/ar7/files/drivers')
-rw-r--r--target/linux/ar7/files/drivers/char/ar7_gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar7/files/drivers/char/ar7_gpio.c b/target/linux/ar7/files/drivers/char/ar7_gpio.c
index a7d0a55345..71310fa751 100644
--- a/target/linux/ar7/files/drivers/char/ar7_gpio.c
+++ b/target/linux/ar7/files/drivers/char/ar7_gpio.c
@@ -41,7 +41,7 @@ static int ar7_gpio_major;
static ssize_t ar7_gpio_write(struct file *file, const char __user *buf,
size_t len, loff_t *ppos)
{
- int pin = iminor(file->f_dentry->d_inode);
+ int pin = iminor(file->f_path.dentry->d_inode);
size_t i;
for (i = 0; i < len; ++i) {
@@ -84,7 +84,7 @@ static ssize_t ar7_gpio_write(struct file *file, const char __user *buf,
static ssize_t ar7_gpio_read(struct file *file, char __user *buf,
size_t len, loff_t *ppos)
{
- int pin = iminor(file->f_dentry->d_inode);
+ int pin = iminor(file->f_path.dentry->d_inode);
int value;
value = gpio_get_value(pin);