projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new helper: file_inode(file)
[linux-2.6-block.git]
/
drivers
/
sbus
/
char
/
display7seg.c
diff --git
a/drivers/sbus/char/display7seg.c
b/drivers/sbus/char/display7seg.c
index e85c803b30cdfd0362940a281f054d4d1b9644d6..fc1339cf91ac65d135ef5bf3c14e242462e1453b 100644
(file)
--- a/
drivers/sbus/char/display7seg.c
+++ b/
drivers/sbus/char/display7seg.c
@@
-107,7
+107,7
@@
static long d7s_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
int error = 0;
u8 ireg = 0;
- if (D7S_MINOR != iminor(file
->f_path.dentry->d_inode
))
+ if (D7S_MINOR != iminor(file
_inode(file)
))
return -ENODEV;
mutex_lock(&d7s_mutex);