aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/inode.c')
-rw-r--r--drivers/usb/gadget/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index 3bdc5e3ba234..ffaa8c1afad8 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -844,7 +844,7 @@ fail1:
844static int 844static int
845ep_open (struct inode *inode, struct file *fd) 845ep_open (struct inode *inode, struct file *fd)
846{ 846{
847 struct ep_data *data = inode->u.generic_ip; 847 struct ep_data *data = inode->i_private;
848 int value = -EBUSY; 848 int value = -EBUSY;
849 849
850 if (down_interruptible (&data->lock) != 0) 850 if (down_interruptible (&data->lock) != 0)
@@ -1909,7 +1909,7 @@ fail:
1909static int 1909static int
1910dev_open (struct inode *inode, struct file *fd) 1910dev_open (struct inode *inode, struct file *fd)
1911{ 1911{
1912 struct dev_data *dev = inode->u.generic_ip; 1912 struct dev_data *dev = inode->i_private;
1913 int value = -EBUSY; 1913 int value = -EBUSY;
1914 1914
1915 if (dev->state == STATE_DEV_DISABLED) { 1915 if (dev->state == STATE_DEV_DISABLED) {
@@ -1970,7 +1970,7 @@ gadgetfs_make_inode (struct super_block *sb,
1970 inode->i_blocks = 0; 1970 inode->i_blocks = 0;
1971 inode->i_atime = inode->i_mtime = inode->i_ctime 1971 inode->i_atime = inode->i_mtime = inode->i_ctime
1972 = CURRENT_TIME; 1972 = CURRENT_TIME;
1973 inode->u.generic_ip = data; 1973 inode->i_private = data;
1974 inode->i_fop = fops; 1974 inode->i_fop = fops;
1975 } 1975 }
1976 return inode; 1976 return inode;