From: Josef Sipek Date: Fri, 8 Dec 2006 10:37:08 +0000 (-0800) Subject: [PATCH] struct path: convert i2c-drivers X-Git-Tag: v2.6.20-rc1~34^2~316 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cba0a128434f1fae6f90ba9f1fedf18be7abcf48;p=linux-2.6-omap-h63xx.git [PATCH] struct path: convert i2c-drivers Signed-off-by: Josef Sipek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index 94a4e9a3013..2e22a2ffa60 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c @@ -119,7 +119,7 @@ static ssize_t i2cdev_read (struct file *file, char __user *buf, size_t count, return -ENOMEM; pr_debug("i2c-dev: i2c-%d reading %zd bytes.\n", - iminor(file->f_dentry->d_inode), count); + iminor(file->f_path.dentry->d_inode), count); ret = i2c_master_recv(client,tmp,count); if (ret >= 0) @@ -147,7 +147,7 @@ static ssize_t i2cdev_write (struct file *file, const char __user *buf, size_t c } pr_debug("i2c-dev: i2c-%d writing %zd bytes.\n", - iminor(file->f_dentry->d_inode), count); + iminor(file->f_path.dentry->d_inode), count); ret = i2c_master_send(client,tmp,count); kfree(tmp);