aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/cosa.c
diff options
context:
space:
mode:
authorJosef Sipek <jsipek@fsl.cs.sunysb.edu>2006-12-08 05:36:57 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:44 -0500
commitf04538c38134edf5f424dc24fda6ef46da736734 (patch)
treee45ffaa0ea34add76ef5cc2d9a9872cc0de47199 /drivers/net/wan/cosa.c
parentd4176d326d76ddea457a5e42ac8c2e3aed3430b1 (diff)
[PATCH] struct path: convert cosa
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/wan/cosa.c')
-rw-r--r--drivers/net/wan/cosa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c
index e1bf8b93f958..6c7dfb50143f 100644
--- a/drivers/net/wan/cosa.c
+++ b/drivers/net/wan/cosa.c
@@ -974,12 +974,12 @@ static int cosa_open(struct inode *inode, struct file *file)
974 unsigned long flags; 974 unsigned long flags;
975 int n; 975 int n;
976 976
977 if ((n=iminor(file->f_dentry->d_inode)>>CARD_MINOR_BITS) 977 if ((n=iminor(file->f_path.dentry->d_inode)>>CARD_MINOR_BITS)
978 >= nr_cards) 978 >= nr_cards)
979 return -ENODEV; 979 return -ENODEV;
980 cosa = cosa_cards+n; 980 cosa = cosa_cards+n;
981 981
982 if ((n=iminor(file->f_dentry->d_inode) 982 if ((n=iminor(file->f_path.dentry->d_inode)
983 & ((1<<CARD_MINOR_BITS)-1)) >= cosa->nchannels) 983 & ((1<<CARD_MINOR_BITS)-1)) >= cosa->nchannels)
984 return -ENODEV; 984 return -ENODEV;
985 chan = cosa->chan + n; 985 chan = cosa->chan + n;