aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/i4l
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-01-23 17:07:38 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2013-02-22 23:31:31 -0500
commit496ad9aa8ef448058e36ca7a787c61f2e63f0f54 (patch)
tree8f4abde793cd7db5bb8fde6d27ebcacd0e54379a /drivers/isdn/i4l
parent57eccb830f1cc93d4b506ba306d8dfa685e0c88f (diff)
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/isdn/i4l')
-rw-r--r--drivers/isdn/i4l/isdn_common.c8
-rw-r--r--drivers/isdn/i4l/isdn_ppp.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c
index e2a945ee9f05..32049ed2f24c 100644
--- a/drivers/isdn/i4l/isdn_common.c
+++ b/drivers/isdn/i4l/isdn_common.c
@@ -1058,7 +1058,7 @@ isdn_info_update(void)
1058static ssize_t 1058static ssize_t
1059isdn_read(struct file *file, char __user *buf, size_t count, loff_t *off) 1059isdn_read(struct file *file, char __user *buf, size_t count, loff_t *off)
1060{ 1060{
1061 uint minor = iminor(file->f_path.dentry->d_inode); 1061 uint minor = iminor(file_inode(file));
1062 int len = 0; 1062 int len = 0;
1063 int drvidx; 1063 int drvidx;
1064 int chidx; 1064 int chidx;
@@ -1165,7 +1165,7 @@ out:
1165static ssize_t 1165static ssize_t
1166isdn_write(struct file *file, const char __user *buf, size_t count, loff_t *off) 1166isdn_write(struct file *file, const char __user *buf, size_t count, loff_t *off)
1167{ 1167{
1168 uint minor = iminor(file->f_path.dentry->d_inode); 1168 uint minor = iminor(file_inode(file));
1169 int drvidx; 1169 int drvidx;
1170 int chidx; 1170 int chidx;
1171 int retval; 1171 int retval;
@@ -1228,7 +1228,7 @@ static unsigned int
1228isdn_poll(struct file *file, poll_table *wait) 1228isdn_poll(struct file *file, poll_table *wait)
1229{ 1229{
1230 unsigned int mask = 0; 1230 unsigned int mask = 0;
1231 unsigned int minor = iminor(file->f_path.dentry->d_inode); 1231 unsigned int minor = iminor(file_inode(file));
1232 int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); 1232 int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
1233 1233
1234 mutex_lock(&isdn_mutex); 1234 mutex_lock(&isdn_mutex);
@@ -1269,7 +1269,7 @@ out:
1269static int 1269static int
1270isdn_ioctl(struct file *file, uint cmd, ulong arg) 1270isdn_ioctl(struct file *file, uint cmd, ulong arg)
1271{ 1271{
1272 uint minor = iminor(file->f_path.dentry->d_inode); 1272 uint minor = iminor(file_inode(file));
1273 isdn_ctrl c; 1273 isdn_ctrl c;
1274 int drvidx; 1274 int drvidx;
1275 int ret; 1275 int ret;
diff --git a/drivers/isdn/i4l/isdn_ppp.c b/drivers/isdn/i4l/isdn_ppp.c
index 61d78fa03b1a..38ceac5053a0 100644
--- a/drivers/isdn/i4l/isdn_ppp.c
+++ b/drivers/isdn/i4l/isdn_ppp.c
@@ -668,7 +668,7 @@ isdn_ppp_poll(struct file *file, poll_table *wait)
668 668
669 if (is->debug & 0x2) 669 if (is->debug & 0x2)
670 printk(KERN_DEBUG "isdn_ppp_poll: minor: %d\n", 670 printk(KERN_DEBUG "isdn_ppp_poll: minor: %d\n",
671 iminor(file->f_path.dentry->d_inode)); 671 iminor(file_inode(file)));
672 672
673 /* just registers wait_queue hook. This doesn't really wait. */ 673 /* just registers wait_queue hook. This doesn't really wait. */
674 poll_wait(file, &is->wq, wait); 674 poll_wait(file, &is->wq, wait);