aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/bpp.c
diff options
context:
space:
mode:
authorJosef Sipek <jsipek@fsl.cs.sunysb.edu>2006-12-08 05:37:36 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:49 -0500
commit7fa95f726aba6033d7baffcfda484c31b8cfe153 (patch)
tree924f8228c223b0f1c6365fdb541124f2b096f523 /drivers/sbus/char/bpp.c
parentd20343e7406a114a561030e683fafc4fdbc9c6bd (diff)
[PATCH] struct path: convert sbus
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/sbus/char/bpp.c')
-rw-r--r--drivers/sbus/char/bpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/bpp.c b/drivers/sbus/char/bpp.c
index 385f4f768311..ac7d1258efee 100644
--- a/drivers/sbus/char/bpp.c
+++ b/drivers/sbus/char/bpp.c
@@ -621,7 +621,7 @@ static long read_ecp(unsigned minor, char __user *c, unsigned long cnt)
621static ssize_t bpp_read(struct file *f, char __user *c, size_t cnt, loff_t * ppos) 621static ssize_t bpp_read(struct file *f, char __user *c, size_t cnt, loff_t * ppos)
622{ 622{
623 long rc; 623 long rc;
624 unsigned minor = iminor(f->f_dentry->d_inode); 624 unsigned minor = iminor(f->f_path.dentry->d_inode);
625 if (minor >= BPP_NO) return -ENODEV; 625 if (minor >= BPP_NO) return -ENODEV;
626 if (!instances[minor].present) return -ENODEV; 626 if (!instances[minor].present) return -ENODEV;
627 627
@@ -774,7 +774,7 @@ static long write_ecp(unsigned minor, const char __user *c, unsigned long cnt)
774static ssize_t bpp_write(struct file *f, const char __user *c, size_t cnt, loff_t * ppos) 774static ssize_t bpp_write(struct file *f, const char __user *c, size_t cnt, loff_t * ppos)
775{ 775{
776 long errno = 0; 776 long errno = 0;
777 unsigned minor = iminor(f->f_dentry->d_inode); 777 unsigned minor = iminor(f->f_path.dentry->d_inode);
778 if (minor >= BPP_NO) return -ENODEV; 778 if (minor >= BPP_NO) return -ENODEV;
779 if (!instances[minor].present) return -ENODEV; 779 if (!instances[minor].present) return -ENODEV;
780 780