diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/chips/tps65010.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_fs.c | 12 | ||||
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_fs.c | 4 | ||||
-rw-r--r-- | drivers/misc/ibmasm/ibmasmfs.c | 16 | ||||
-rw-r--r-- | drivers/net/irda/vlsi_ir.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | 2 | ||||
-rw-r--r-- | drivers/oprofile/oprofilefs.c | 10 | ||||
-rw-r--r-- | drivers/pci/hotplug/cpqphp_sysfs.c | 2 | ||||
-rw-r--r-- | drivers/usb/core/devio.c | 2 | ||||
-rw-r--r-- | drivers/usb/core/inode.c | 6 | ||||
-rw-r--r-- | drivers/usb/gadget/inode.c | 6 | ||||
-rw-r--r-- | drivers/usb/host/isp116x-hcd.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/uhci-debug.c | 2 | ||||
-rw-r--r-- | drivers/usb/mon/mon_stat.c | 2 | ||||
-rw-r--r-- | drivers/usb/mon/mon_text.c | 4 |
15 files changed, 37 insertions, 37 deletions
diff --git a/drivers/i2c/chips/tps65010.c b/drivers/i2c/chips/tps65010.c index 0be6fd6a267d..6a7578217177 100644 --- a/drivers/i2c/chips/tps65010.c +++ b/drivers/i2c/chips/tps65010.c | |||
@@ -305,7 +305,7 @@ static int dbg_show(struct seq_file *s, void *_) | |||
305 | 305 | ||
306 | static int dbg_tps_open(struct inode *inode, struct file *file) | 306 | static int dbg_tps_open(struct inode *inode, struct file *file) |
307 | { | 307 | { |
308 | return single_open(file, dbg_show, inode->u.generic_ip); | 308 | return single_open(file, dbg_show, inode->i_private); |
309 | } | 309 | } |
310 | 310 | ||
311 | static struct file_operations debug_fops = { | 311 | static struct file_operations debug_fops = { |
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index a5eb30a06a5c..055cdd089b28 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c | |||
@@ -64,7 +64,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, | |||
64 | inode->i_blksize = PAGE_CACHE_SIZE; | 64 | inode->i_blksize = PAGE_CACHE_SIZE; |
65 | inode->i_blocks = 0; | 65 | inode->i_blocks = 0; |
66 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 66 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
67 | inode->u.generic_ip = data; | 67 | inode->i_private = data; |
68 | if ((mode & S_IFMT) == S_IFDIR) { | 68 | if ((mode & S_IFMT) == S_IFDIR) { |
69 | inode->i_op = &simple_dir_inode_operations; | 69 | inode->i_op = &simple_dir_inode_operations; |
70 | inode->i_nlink++; | 70 | inode->i_nlink++; |
@@ -119,7 +119,7 @@ static ssize_t atomic_counters_read(struct file *file, char __user *buf, | |||
119 | u16 i; | 119 | u16 i; |
120 | struct ipath_devdata *dd; | 120 | struct ipath_devdata *dd; |
121 | 121 | ||
122 | dd = file->f_dentry->d_inode->u.generic_ip; | 122 | dd = file->f_dentry->d_inode->i_private; |
123 | 123 | ||
124 | for (i = 0; i < NUM_COUNTERS; i++) | 124 | for (i = 0; i < NUM_COUNTERS; i++) |
125 | counters[i] = ipath_snap_cntr(dd, i); | 125 | counters[i] = ipath_snap_cntr(dd, i); |
@@ -139,7 +139,7 @@ static ssize_t atomic_node_info_read(struct file *file, char __user *buf, | |||
139 | struct ipath_devdata *dd; | 139 | struct ipath_devdata *dd; |
140 | u64 guid; | 140 | u64 guid; |
141 | 141 | ||
142 | dd = file->f_dentry->d_inode->u.generic_ip; | 142 | dd = file->f_dentry->d_inode->i_private; |
143 | 143 | ||
144 | guid = be64_to_cpu(dd->ipath_guid); | 144 | guid = be64_to_cpu(dd->ipath_guid); |
145 | 145 | ||
@@ -178,7 +178,7 @@ static ssize_t atomic_port_info_read(struct file *file, char __user *buf, | |||
178 | u32 tmp, tmp2; | 178 | u32 tmp, tmp2; |
179 | struct ipath_devdata *dd; | 179 | struct ipath_devdata *dd; |
180 | 180 | ||
181 | dd = file->f_dentry->d_inode->u.generic_ip; | 181 | dd = file->f_dentry->d_inode->i_private; |
182 | 182 | ||
183 | /* so we only initialize non-zero fields. */ | 183 | /* so we only initialize non-zero fields. */ |
184 | memset(portinfo, 0, sizeof portinfo); | 184 | memset(portinfo, 0, sizeof portinfo); |
@@ -325,7 +325,7 @@ static ssize_t flash_read(struct file *file, char __user *buf, | |||
325 | goto bail; | 325 | goto bail; |
326 | } | 326 | } |
327 | 327 | ||
328 | dd = file->f_dentry->d_inode->u.generic_ip; | 328 | dd = file->f_dentry->d_inode->i_private; |
329 | if (ipath_eeprom_read(dd, pos, tmp, count)) { | 329 | if (ipath_eeprom_read(dd, pos, tmp, count)) { |
330 | ipath_dev_err(dd, "failed to read from flash\n"); | 330 | ipath_dev_err(dd, "failed to read from flash\n"); |
331 | ret = -ENXIO; | 331 | ret = -ENXIO; |
@@ -381,7 +381,7 @@ static ssize_t flash_write(struct file *file, const char __user *buf, | |||
381 | goto bail_tmp; | 381 | goto bail_tmp; |
382 | } | 382 | } |
383 | 383 | ||
384 | dd = file->f_dentry->d_inode->u.generic_ip; | 384 | dd = file->f_dentry->d_inode->i_private; |
385 | if (ipath_eeprom_write(dd, pos, tmp, count)) { | 385 | if (ipath_eeprom_write(dd, pos, tmp, count)) { |
386 | ret = -ENXIO; | 386 | ret = -ENXIO; |
387 | ipath_dev_err(dd, "failed to write to flash\n"); | 387 | ipath_dev_err(dd, "failed to write to flash\n"); |
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_fs.c b/drivers/infiniband/ulp/ipoib/ipoib_fs.c index 5dde380e8dbe..f1cb83688b31 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_fs.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_fs.c | |||
@@ -141,7 +141,7 @@ static int ipoib_mcg_open(struct inode *inode, struct file *file) | |||
141 | return ret; | 141 | return ret; |
142 | 142 | ||
143 | seq = file->private_data; | 143 | seq = file->private_data; |
144 | seq->private = inode->u.generic_ip; | 144 | seq->private = inode->i_private; |
145 | 145 | ||
146 | return 0; | 146 | return 0; |
147 | } | 147 | } |
@@ -247,7 +247,7 @@ static int ipoib_path_open(struct inode *inode, struct file *file) | |||
247 | return ret; | 247 | return ret; |
248 | 248 | ||
249 | seq = file->private_data; | 249 | seq = file->private_data; |
250 | seq->private = inode->u.generic_ip; | 250 | seq->private = inode->i_private; |
251 | 251 | ||
252 | return 0; | 252 | return 0; |
253 | } | 253 | } |
diff --git a/drivers/misc/ibmasm/ibmasmfs.c b/drivers/misc/ibmasm/ibmasmfs.c index 4a35caff5d02..0e909b617226 100644 --- a/drivers/misc/ibmasm/ibmasmfs.c +++ b/drivers/misc/ibmasm/ibmasmfs.c | |||
@@ -175,7 +175,7 @@ static struct dentry *ibmasmfs_create_file (struct super_block *sb, | |||
175 | } | 175 | } |
176 | 176 | ||
177 | inode->i_fop = fops; | 177 | inode->i_fop = fops; |
178 | inode->u.generic_ip = data; | 178 | inode->i_private = data; |
179 | 179 | ||
180 | d_add(dentry, inode); | 180 | d_add(dentry, inode); |
181 | return dentry; | 181 | return dentry; |
@@ -244,7 +244,7 @@ static int command_file_open(struct inode *inode, struct file *file) | |||
244 | { | 244 | { |
245 | struct ibmasmfs_command_data *command_data; | 245 | struct ibmasmfs_command_data *command_data; |
246 | 246 | ||
247 | if (!inode->u.generic_ip) | 247 | if (!inode->i_private) |
248 | return -ENODEV; | 248 | return -ENODEV; |
249 | 249 | ||
250 | command_data = kmalloc(sizeof(struct ibmasmfs_command_data), GFP_KERNEL); | 250 | command_data = kmalloc(sizeof(struct ibmasmfs_command_data), GFP_KERNEL); |
@@ -252,7 +252,7 @@ static int command_file_open(struct inode *inode, struct file *file) | |||
252 | return -ENOMEM; | 252 | return -ENOMEM; |
253 | 253 | ||
254 | command_data->command = NULL; | 254 | command_data->command = NULL; |
255 | command_data->sp = inode->u.generic_ip; | 255 | command_data->sp = inode->i_private; |
256 | file->private_data = command_data; | 256 | file->private_data = command_data; |
257 | return 0; | 257 | return 0; |
258 | } | 258 | } |
@@ -351,10 +351,10 @@ static int event_file_open(struct inode *inode, struct file *file) | |||
351 | struct ibmasmfs_event_data *event_data; | 351 | struct ibmasmfs_event_data *event_data; |
352 | struct service_processor *sp; | 352 | struct service_processor *sp; |
353 | 353 | ||
354 | if (!inode->u.generic_ip) | 354 | if (!inode->i_private) |
355 | return -ENODEV; | 355 | return -ENODEV; |
356 | 356 | ||
357 | sp = inode->u.generic_ip; | 357 | sp = inode->i_private; |
358 | 358 | ||
359 | event_data = kmalloc(sizeof(struct ibmasmfs_event_data), GFP_KERNEL); | 359 | event_data = kmalloc(sizeof(struct ibmasmfs_event_data), GFP_KERNEL); |
360 | if (!event_data) | 360 | if (!event_data) |
@@ -439,14 +439,14 @@ static int r_heartbeat_file_open(struct inode *inode, struct file *file) | |||
439 | { | 439 | { |
440 | struct ibmasmfs_heartbeat_data *rhbeat; | 440 | struct ibmasmfs_heartbeat_data *rhbeat; |
441 | 441 | ||
442 | if (!inode->u.generic_ip) | 442 | if (!inode->i_private) |
443 | return -ENODEV; | 443 | return -ENODEV; |
444 | 444 | ||
445 | rhbeat = kmalloc(sizeof(struct ibmasmfs_heartbeat_data), GFP_KERNEL); | 445 | rhbeat = kmalloc(sizeof(struct ibmasmfs_heartbeat_data), GFP_KERNEL); |
446 | if (!rhbeat) | 446 | if (!rhbeat) |
447 | return -ENOMEM; | 447 | return -ENOMEM; |
448 | 448 | ||
449 | rhbeat->sp = (struct service_processor *)inode->u.generic_ip; | 449 | rhbeat->sp = inode->i_private; |
450 | rhbeat->active = 0; | 450 | rhbeat->active = 0; |
451 | ibmasm_init_reverse_heartbeat(rhbeat->sp, &rhbeat->heartbeat); | 451 | ibmasm_init_reverse_heartbeat(rhbeat->sp, &rhbeat->heartbeat); |
452 | file->private_data = rhbeat; | 452 | file->private_data = rhbeat; |
@@ -508,7 +508,7 @@ static ssize_t r_heartbeat_file_write(struct file *file, const char __user *buf, | |||
508 | 508 | ||
509 | static int remote_settings_file_open(struct inode *inode, struct file *file) | 509 | static int remote_settings_file_open(struct inode *inode, struct file *file) |
510 | { | 510 | { |
511 | file->private_data = inode->u.generic_ip; | 511 | file->private_data = inode->i_private; |
512 | return 0; | 512 | return 0; |
513 | } | 513 | } |
514 | 514 | ||
diff --git a/drivers/net/irda/vlsi_ir.h b/drivers/net/irda/vlsi_ir.h index a82a4ba8de4f..c37f0bc4c7f9 100644 --- a/drivers/net/irda/vlsi_ir.h +++ b/drivers/net/irda/vlsi_ir.h | |||
@@ -58,7 +58,7 @@ typedef void irqreturn_t; | |||
58 | 58 | ||
59 | /* PDE() introduced in 2.5.4 */ | 59 | /* PDE() introduced in 2.5.4 */ |
60 | #ifdef CONFIG_PROC_FS | 60 | #ifdef CONFIG_PROC_FS |
61 | #define PDE(inode) ((inode)->u.generic_ip) | 61 | #define PDE(inode) ((inode)->i_private) |
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* irda crc16 calculation exported in 2.5.42 */ | 64 | /* irda crc16 calculation exported in 2.5.42 */ |
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c b/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c index 923275ea0789..b9df06a06ea9 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | |||
@@ -54,7 +54,7 @@ static ssize_t write_file_dummy(struct file *file, const char __user *buf, | |||
54 | 54 | ||
55 | static int open_file_generic(struct inode *inode, struct file *file) | 55 | static int open_file_generic(struct inode *inode, struct file *file) |
56 | { | 56 | { |
57 | file->private_data = inode->u.generic_ip; | 57 | file->private_data = inode->i_private; |
58 | return 0; | 58 | return 0; |
59 | } | 59 | } |
60 | 60 | ||
diff --git a/drivers/oprofile/oprofilefs.c b/drivers/oprofile/oprofilefs.c index 71c2da277d6e..deb37354785b 100644 --- a/drivers/oprofile/oprofilefs.c +++ b/drivers/oprofile/oprofilefs.c | |||
@@ -110,8 +110,8 @@ static ssize_t ulong_write_file(struct file * file, char const __user * buf, siz | |||
110 | 110 | ||
111 | static int default_open(struct inode * inode, struct file * filp) | 111 | static int default_open(struct inode * inode, struct file * filp) |
112 | { | 112 | { |
113 | if (inode->u.generic_ip) | 113 | if (inode->i_private) |
114 | filp->private_data = inode->u.generic_ip; | 114 | filp->private_data = inode->i_private; |
115 | return 0; | 115 | return 0; |
116 | } | 116 | } |
117 | 117 | ||
@@ -158,7 +158,7 @@ int oprofilefs_create_ulong(struct super_block * sb, struct dentry * root, | |||
158 | if (!d) | 158 | if (!d) |
159 | return -EFAULT; | 159 | return -EFAULT; |
160 | 160 | ||
161 | d->d_inode->u.generic_ip = val; | 161 | d->d_inode->i_private = val; |
162 | return 0; | 162 | return 0; |
163 | } | 163 | } |
164 | 164 | ||
@@ -171,7 +171,7 @@ int oprofilefs_create_ro_ulong(struct super_block * sb, struct dentry * root, | |||
171 | if (!d) | 171 | if (!d) |
172 | return -EFAULT; | 172 | return -EFAULT; |
173 | 173 | ||
174 | d->d_inode->u.generic_ip = val; | 174 | d->d_inode->i_private = val; |
175 | return 0; | 175 | return 0; |
176 | } | 176 | } |
177 | 177 | ||
@@ -197,7 +197,7 @@ int oprofilefs_create_ro_atomic(struct super_block * sb, struct dentry * root, | |||
197 | if (!d) | 197 | if (!d) |
198 | return -EFAULT; | 198 | return -EFAULT; |
199 | 199 | ||
200 | d->d_inode->u.generic_ip = val; | 200 | d->d_inode->i_private = val; |
201 | return 0; | 201 | return 0; |
202 | } | 202 | } |
203 | 203 | ||
diff --git a/drivers/pci/hotplug/cpqphp_sysfs.c b/drivers/pci/hotplug/cpqphp_sysfs.c index 8b3da007e859..5bab666cd67e 100644 --- a/drivers/pci/hotplug/cpqphp_sysfs.c +++ b/drivers/pci/hotplug/cpqphp_sysfs.c | |||
@@ -140,7 +140,7 @@ struct ctrl_dbg { | |||
140 | 140 | ||
141 | static int open(struct inode *inode, struct file *file) | 141 | static int open(struct inode *inode, struct file *file) |
142 | { | 142 | { |
143 | struct controller *ctrl = inode->u.generic_ip; | 143 | struct controller *ctrl = inode->i_private; |
144 | struct ctrl_dbg *dbg; | 144 | struct ctrl_dbg *dbg; |
145 | int retval = -ENOMEM; | 145 | int retval = -ENOMEM; |
146 | 146 | ||
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 218621b9958e..32e03000420c 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -555,7 +555,7 @@ static int usbdev_open(struct inode *inode, struct file *file) | |||
555 | if (imajor(inode) == USB_DEVICE_MAJOR) | 555 | if (imajor(inode) == USB_DEVICE_MAJOR) |
556 | dev = usbdev_lookup_minor(iminor(inode)); | 556 | dev = usbdev_lookup_minor(iminor(inode)); |
557 | if (!dev) | 557 | if (!dev) |
558 | dev = inode->u.generic_ip; | 558 | dev = inode->i_private; |
559 | if (!dev) { | 559 | if (!dev) { |
560 | kfree(ps); | 560 | kfree(ps); |
561 | goto out; | 561 | goto out; |
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c index 3182c2224ba2..482f253085e5 100644 --- a/drivers/usb/core/inode.c +++ b/drivers/usb/core/inode.c | |||
@@ -402,8 +402,8 @@ static loff_t default_file_lseek (struct file *file, loff_t offset, int orig) | |||
402 | 402 | ||
403 | static int default_open (struct inode *inode, struct file *file) | 403 | static int default_open (struct inode *inode, struct file *file) |
404 | { | 404 | { |
405 | if (inode->u.generic_ip) | 405 | if (inode->i_private) |
406 | file->private_data = inode->u.generic_ip; | 406 | file->private_data = inode->i_private; |
407 | 407 | ||
408 | return 0; | 408 | return 0; |
409 | } | 409 | } |
@@ -509,7 +509,7 @@ static struct dentry *fs_create_file (const char *name, mode_t mode, | |||
509 | } else { | 509 | } else { |
510 | if (dentry->d_inode) { | 510 | if (dentry->d_inode) { |
511 | if (data) | 511 | if (data) |
512 | dentry->d_inode->u.generic_ip = data; | 512 | dentry->d_inode->i_private = data; |
513 | if (fops) | 513 | if (fops) |
514 | dentry->d_inode->i_fop = fops; | 514 | dentry->d_inode->i_fop = fops; |
515 | dentry->d_inode->i_uid = uid; | 515 | dentry->d_inode->i_uid = uid; |
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: | |||
844 | static int | 844 | static int |
845 | ep_open (struct inode *inode, struct file *fd) | 845 | ep_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: | |||
1909 | static int | 1909 | static int |
1910 | dev_open (struct inode *inode, struct file *fd) | 1910 | dev_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; |
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c index 5147ed4a6662..8c6b38a0b5bb 100644 --- a/drivers/usb/host/isp116x-hcd.c +++ b/drivers/usb/host/isp116x-hcd.c | |||
@@ -1204,7 +1204,7 @@ static int isp116x_show_dbg(struct seq_file *s, void *unused) | |||
1204 | 1204 | ||
1205 | static int isp116x_open_seq(struct inode *inode, struct file *file) | 1205 | static int isp116x_open_seq(struct inode *inode, struct file *file) |
1206 | { | 1206 | { |
1207 | return single_open(file, isp116x_show_dbg, inode->u.generic_ip); | 1207 | return single_open(file, isp116x_show_dbg, inode->i_private); |
1208 | } | 1208 | } |
1209 | 1209 | ||
1210 | static struct file_operations isp116x_debug_fops = { | 1210 | static struct file_operations isp116x_debug_fops = { |
diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c index dc286a48cafd..d1372cb27f33 100644 --- a/drivers/usb/host/uhci-debug.c +++ b/drivers/usb/host/uhci-debug.c | |||
@@ -428,7 +428,7 @@ struct uhci_debug { | |||
428 | 428 | ||
429 | static int uhci_debug_open(struct inode *inode, struct file *file) | 429 | static int uhci_debug_open(struct inode *inode, struct file *file) |
430 | { | 430 | { |
431 | struct uhci_hcd *uhci = inode->u.generic_ip; | 431 | struct uhci_hcd *uhci = inode->i_private; |
432 | struct uhci_debug *up; | 432 | struct uhci_debug *up; |
433 | int ret = -ENOMEM; | 433 | int ret = -ENOMEM; |
434 | unsigned long flags; | 434 | unsigned long flags; |
diff --git a/drivers/usb/mon/mon_stat.c b/drivers/usb/mon/mon_stat.c index 1fe01d994a79..86ad2b381c4b 100644 --- a/drivers/usb/mon/mon_stat.c +++ b/drivers/usb/mon/mon_stat.c | |||
@@ -28,7 +28,7 @@ static int mon_stat_open(struct inode *inode, struct file *file) | |||
28 | if ((sp = kmalloc(sizeof(struct snap), GFP_KERNEL)) == NULL) | 28 | if ((sp = kmalloc(sizeof(struct snap), GFP_KERNEL)) == NULL) |
29 | return -ENOMEM; | 29 | return -ENOMEM; |
30 | 30 | ||
31 | mbus = inode->u.generic_ip; | 31 | mbus = inode->i_private; |
32 | 32 | ||
33 | sp->slen = snprintf(sp->str, STAT_BUF_SIZE, | 33 | sp->slen = snprintf(sp->str, STAT_BUF_SIZE, |
34 | "nreaders %d events %u text_lost %u\n", | 34 | "nreaders %d events %u text_lost %u\n", |
diff --git a/drivers/usb/mon/mon_text.c b/drivers/usb/mon/mon_text.c index f961a770cee2..2fd39b4fa166 100644 --- a/drivers/usb/mon/mon_text.c +++ b/drivers/usb/mon/mon_text.c | |||
@@ -238,7 +238,7 @@ static int mon_text_open(struct inode *inode, struct file *file) | |||
238 | int rc; | 238 | int rc; |
239 | 239 | ||
240 | mutex_lock(&mon_lock); | 240 | mutex_lock(&mon_lock); |
241 | mbus = inode->u.generic_ip; | 241 | mbus = inode->i_private; |
242 | ubus = mbus->u_bus; | 242 | ubus = mbus->u_bus; |
243 | 243 | ||
244 | rp = kzalloc(sizeof(struct mon_reader_text), GFP_KERNEL); | 244 | rp = kzalloc(sizeof(struct mon_reader_text), GFP_KERNEL); |
@@ -401,7 +401,7 @@ static int mon_text_release(struct inode *inode, struct file *file) | |||
401 | struct mon_event_text *ep; | 401 | struct mon_event_text *ep; |
402 | 402 | ||
403 | mutex_lock(&mon_lock); | 403 | mutex_lock(&mon_lock); |
404 | mbus = inode->u.generic_ip; | 404 | mbus = inode->i_private; |
405 | 405 | ||
406 | if (mbus->nreaders <= 0) { | 406 | if (mbus->nreaders <= 0) { |
407 | printk(KERN_ERR TAG ": consistency error on close\n"); | 407 | printk(KERN_ERR TAG ": consistency error on close\n"); |