aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/acsi_slm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/acsi_slm.c')
-rw-r--r--drivers/block/acsi_slm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/acsi_slm.c b/drivers/block/acsi_slm.c
index 8e41c87b026e..e04be94d195c 100644
--- a/drivers/block/acsi_slm.c
+++ b/drivers/block/acsi_slm.c
@@ -363,7 +363,7 @@ static ssize_t slm_read( struct file *file, char *buf, size_t count,
363 loff_t *ppos ) 363 loff_t *ppos )
364 364
365{ 365{
366 struct inode *node = file->f_dentry->d_inode; 366 struct inode *node = file->f_path.dentry->d_inode;
367 unsigned long page; 367 unsigned long page;
368 int length; 368 int length;
369 int end; 369 int end;
@@ -618,7 +618,7 @@ static ssize_t slm_write( struct file *file, const char *buf, size_t count,
618 loff_t *ppos ) 618 loff_t *ppos )
619 619
620{ 620{
621 struct inode *node = file->f_dentry->d_inode; 621 struct inode *node = file->f_path.dentry->d_inode;
622 int device = iminor(node); 622 int device = iminor(node);
623 int n, filled, w, h; 623 int n, filled, w, h;
624 624