diff options
Diffstat (limited to 'drivers/sbus/char/display7seg.c')
-rw-r--r-- | drivers/sbus/char/display7seg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c index d92bc8827a9e..a4909e0c7f83 100644 --- a/drivers/sbus/char/display7seg.c +++ b/drivers/sbus/char/display7seg.c | |||
@@ -121,7 +121,7 @@ static long d7s_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
121 | __u8 ireg = 0; | 121 | __u8 ireg = 0; |
122 | int error = 0; | 122 | int error = 0; |
123 | 123 | ||
124 | if (D7S_MINOR != iminor(file->f_dentry->d_inode)) | 124 | if (D7S_MINOR != iminor(file->f_path.dentry->d_inode)) |
125 | return -ENODEV; | 125 | return -ENODEV; |
126 | 126 | ||
127 | lock_kernel(); | 127 | lock_kernel(); |