diff options
author | Dave Jones <davej@redhat.com> | 2006-12-12 18:13:32 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-12-12 18:13:32 -0500 |
commit | f0eef25339f92f7cd4aeea23d9ae97987a5a1e82 (patch) | |
tree | 2472e94d39f43a9580a6d2d5d92de0b749023263 /drivers/char/nsc_gpio.c | |
parent | 0cfea5dd98205f2fa318836da664a7d7df1afbc1 (diff) | |
parent | e1036502e5263851259d147771226161e5ccc85a (diff) |
Merge ../linus
Diffstat (limited to 'drivers/char/nsc_gpio.c')
-rw-r--r-- | drivers/char/nsc_gpio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/nsc_gpio.c b/drivers/char/nsc_gpio.c index 7719bd75810b..808d44e9a32a 100644 --- a/drivers/char/nsc_gpio.c +++ b/drivers/char/nsc_gpio.c | |||
@@ -7,7 +7,6 @@ | |||
7 | Copyright (c) 2005 Jim Cromie <jim.cromie@gmail.com> | 7 | Copyright (c) 2005 Jim Cromie <jim.cromie@gmail.com> |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/config.h> | ||
11 | #include <linux/fs.h> | 10 | #include <linux/fs.h> |
12 | #include <linux/module.h> | 11 | #include <linux/module.h> |
13 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
@@ -42,7 +41,7 @@ void nsc_gpio_dump(struct nsc_gpio_ops *amp, unsigned index) | |||
42 | ssize_t nsc_gpio_write(struct file *file, const char __user *data, | 41 | ssize_t nsc_gpio_write(struct file *file, const char __user *data, |
43 | size_t len, loff_t *ppos) | 42 | size_t len, loff_t *ppos) |
44 | { | 43 | { |
45 | unsigned m = iminor(file->f_dentry->d_inode); | 44 | unsigned m = iminor(file->f_path.dentry->d_inode); |
46 | struct nsc_gpio_ops *amp = file->private_data; | 45 | struct nsc_gpio_ops *amp = file->private_data; |
47 | struct device *dev = amp->dev; | 46 | struct device *dev = amp->dev; |
48 | size_t i; | 47 | size_t i; |
@@ -105,7 +104,7 @@ ssize_t nsc_gpio_write(struct file *file, const char __user *data, | |||
105 | ssize_t nsc_gpio_read(struct file *file, char __user * buf, | 104 | ssize_t nsc_gpio_read(struct file *file, char __user * buf, |
106 | size_t len, loff_t * ppos) | 105 | size_t len, loff_t * ppos) |
107 | { | 106 | { |
108 | unsigned m = iminor(file->f_dentry->d_inode); | 107 | unsigned m = iminor(file->f_path.dentry->d_inode); |
109 | int value; | 108 | int value; |
110 | struct nsc_gpio_ops *amp = file->private_data; | 109 | struct nsc_gpio_ops *amp = file->private_data; |
111 | 110 | ||