X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fscsi%2F3w-9xxx.c;h=5e1e12c0cf4220796112d2d6dd9d9e102fdf537d;hb=8fd5e7a2d9574b3cac1c9264ad1aed3b613ed6fe;hp=d1f0120cdb98228bcea7ef0b638c6ee900c75233;hpb=94f2f14234178f118545a0be60a6371ddeb229b7;p=~andy%2Flinux diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c index d1f0120cdb9..5e1e12c0cf4 100644 --- a/drivers/scsi/3w-9xxx.c +++ b/drivers/scsi/3w-9xxx.c @@ -640,7 +640,7 @@ out: /* This function handles ioctl for the character device */ static long twa_chrdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { - struct inode *inode = file->f_path.dentry->d_inode; + struct inode *inode = file_inode(file); long timeout; unsigned long *cpu_addr, data_buffer_length_adjusted = 0, flags = 0; dma_addr_t dma_handle;