aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/cs5535_gpio.c4
-rw-r--r--drivers/char/dsp56k.c6
-rw-r--r--drivers/char/dtlk.c4
-rw-r--r--drivers/char/ip2/ip2main.c2
-rw-r--r--drivers/char/istallion.c4
-rw-r--r--drivers/char/lp.c4
-rw-r--r--drivers/char/mem.c4
-rw-r--r--drivers/char/nsc_gpio.c4
-rw-r--r--drivers/char/ppdev.c4
-rw-r--r--drivers/char/random.c2
-rw-r--r--drivers/char/raw.c2
-rw-r--r--drivers/char/sonypi.c2
-rw-r--r--drivers/char/tb0219.c4
-rw-r--r--drivers/char/tipar.c4
-rw-r--r--drivers/char/tty_io.c12
-rw-r--r--drivers/char/vc_screen.c6
-rw-r--r--drivers/char/viotape.c10
-rw-r--r--drivers/char/vr41xx_giu.c4
18 files changed, 41 insertions, 41 deletions
diff --git a/drivers/char/cs5535_gpio.c b/drivers/char/cs5535_gpio.c
index 8ce3f34cfc22..c02d9e99e050 100644
--- a/drivers/char/cs5535_gpio.c
+++ b/drivers/char/cs5535_gpio.c
@@ -82,7 +82,7 @@ static inline u32 cs5535_lowhigh_base(int reg)
82static ssize_t cs5535_gpio_write(struct file *file, const char __user *data, 82static ssize_t cs5535_gpio_write(struct file *file, const char __user *data,
83 size_t len, loff_t *ppos) 83 size_t len, loff_t *ppos)
84{ 84{
85 u32 m = iminor(file->f_dentry->d_inode); 85 u32 m = iminor(file->f_path.dentry->d_inode);
86 int i, j; 86 int i, j;
87 u32 base = gpio_base + cs5535_lowhigh_base(m); 87 u32 base = gpio_base + cs5535_lowhigh_base(m);
88 u32 m0, m1; 88 u32 m0, m1;
@@ -117,7 +117,7 @@ static ssize_t cs5535_gpio_write(struct file *file, const char __user *data,
117static ssize_t cs5535_gpio_read(struct file *file, char __user *buf, 117static ssize_t cs5535_gpio_read(struct file *file, char __user *buf,
118 size_t len, loff_t *ppos) 118 size_t len, loff_t *ppos)
119{ 119{
120 u32 m = iminor(file->f_dentry->d_inode); 120 u32 m = iminor(file->f_path.dentry->d_inode);
121 u32 base = gpio_base + cs5535_lowhigh_base(m); 121 u32 base = gpio_base + cs5535_lowhigh_base(m);
122 int rd_bit = 1 << (m & 0x0f); 122 int rd_bit = 1 << (m & 0x0f);
123 int i; 123 int i;
diff --git a/drivers/char/dsp56k.c b/drivers/char/dsp56k.c
index 9b1bf60ffbe7..06f2dbf17710 100644
--- a/drivers/char/dsp56k.c
+++ b/drivers/char/dsp56k.c
@@ -201,7 +201,7 @@ static int dsp56k_upload(u_char __user *bin, int len)
201static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count, 201static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count,
202 loff_t *ppos) 202 loff_t *ppos)
203{ 203{
204 struct inode *inode = file->f_dentry->d_inode; 204 struct inode *inode = file->f_path.dentry->d_inode;
205 int dev = iminor(inode) & 0x0f; 205 int dev = iminor(inode) & 0x0f;
206 206
207 switch(dev) 207 switch(dev)
@@ -264,7 +264,7 @@ static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count,
264static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t count, 264static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t count,
265 loff_t *ppos) 265 loff_t *ppos)
266{ 266{
267 struct inode *inode = file->f_dentry->d_inode; 267 struct inode *inode = file->f_path.dentry->d_inode;
268 int dev = iminor(inode) & 0x0f; 268 int dev = iminor(inode) & 0x0f;
269 269
270 switch(dev) 270 switch(dev)
@@ -420,7 +420,7 @@ static int dsp56k_ioctl(struct inode *inode, struct file *file,
420#if 0 420#if 0
421static unsigned int dsp56k_poll(struct file *file, poll_table *wait) 421static unsigned int dsp56k_poll(struct file *file, poll_table *wait)
422{ 422{
423 int dev = iminor(file->f_dentry->d_inode) & 0x0f; 423 int dev = iminor(file->f_path.dentry->d_inode) & 0x0f;
424 424
425 switch(dev) 425 switch(dev)
426 { 426 {
diff --git a/drivers/char/dtlk.c b/drivers/char/dtlk.c
index 5e82c3bad2e3..d4005e94fe5f 100644
--- a/drivers/char/dtlk.c
+++ b/drivers/char/dtlk.c
@@ -122,7 +122,7 @@ static void dtlk_timer_tick(unsigned long data);
122static ssize_t dtlk_read(struct file *file, char __user *buf, 122static ssize_t dtlk_read(struct file *file, char __user *buf,
123 size_t count, loff_t * ppos) 123 size_t count, loff_t * ppos)
124{ 124{
125 unsigned int minor = iminor(file->f_dentry->d_inode); 125 unsigned int minor = iminor(file->f_path.dentry->d_inode);
126 char ch; 126 char ch;
127 int i = 0, retries; 127 int i = 0, retries;
128 128
@@ -174,7 +174,7 @@ static ssize_t dtlk_write(struct file *file, const char __user *buf,
174 } 174 }
175#endif 175#endif
176 176
177 if (iminor(file->f_dentry->d_inode) != DTLK_MINOR) 177 if (iminor(file->f_path.dentry->d_inode) != DTLK_MINOR)
178 return -EINVAL; 178 return -EINVAL;
179 179
180 while (1) { 180 while (1) {
diff --git a/drivers/char/ip2/ip2main.c b/drivers/char/ip2/ip2main.c
index cda2459c1d60..6810b7bbcbb7 100644
--- a/drivers/char/ip2/ip2main.c
+++ b/drivers/char/ip2/ip2main.c
@@ -2700,7 +2700,7 @@ static
2700ssize_t 2700ssize_t
2701ip2_ipl_read(struct file *pFile, char __user *pData, size_t count, loff_t *off ) 2701ip2_ipl_read(struct file *pFile, char __user *pData, size_t count, loff_t *off )
2702{ 2702{
2703 unsigned int minor = iminor(pFile->f_dentry->d_inode); 2703 unsigned int minor = iminor(pFile->f_path.dentry->d_inode);
2704 int rc = 0; 2704 int rc = 0;
2705 2705
2706#ifdef IP2DEBUG_IPL 2706#ifdef IP2DEBUG_IPL
diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c
index 8f591945ebd9..b6f0d036a760 100644
--- a/drivers/char/istallion.c
+++ b/drivers/char/istallion.c
@@ -4194,7 +4194,7 @@ static ssize_t stli_memread(struct file *fp, char __user *buf, size_t count, lof
4194 void *p; 4194 void *p;
4195 loff_t off = *offp; 4195 loff_t off = *offp;
4196 4196
4197 brdnr = iminor(fp->f_dentry->d_inode); 4197 brdnr = iminor(fp->f_path.dentry->d_inode);
4198 if (brdnr >= stli_nrbrds) 4198 if (brdnr >= stli_nrbrds)
4199 return -ENODEV; 4199 return -ENODEV;
4200 brdp = stli_brds[brdnr]; 4200 brdp = stli_brds[brdnr];
@@ -4258,7 +4258,7 @@ static ssize_t stli_memwrite(struct file *fp, const char __user *buf, size_t cou
4258 void *p; 4258 void *p;
4259 loff_t off = *offp; 4259 loff_t off = *offp;
4260 4260
4261 brdnr = iminor(fp->f_dentry->d_inode); 4261 brdnr = iminor(fp->f_path.dentry->d_inode);
4262 4262
4263 if (brdnr >= stli_nrbrds) 4263 if (brdnr >= stli_nrbrds)
4264 return -ENODEV; 4264 return -ENODEV;
diff --git a/drivers/char/lp.c b/drivers/char/lp.c
index 1ecea7d448f1..b70b5388b5a8 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -296,7 +296,7 @@ static int lp_wait_ready(int minor, int nonblock)
296static ssize_t lp_write(struct file * file, const char __user * buf, 296static ssize_t lp_write(struct file * file, const char __user * buf,
297 size_t count, loff_t *ppos) 297 size_t count, loff_t *ppos)
298{ 298{
299 unsigned int minor = iminor(file->f_dentry->d_inode); 299 unsigned int minor = iminor(file->f_path.dentry->d_inode);
300 struct parport *port = lp_table[minor].dev->port; 300 struct parport *port = lp_table[minor].dev->port;
301 char *kbuf = lp_table[minor].lp_buffer; 301 char *kbuf = lp_table[minor].lp_buffer;
302 ssize_t retv = 0; 302 ssize_t retv = 0;
@@ -415,7 +415,7 @@ static ssize_t lp_read(struct file * file, char __user * buf,
415 size_t count, loff_t *ppos) 415 size_t count, loff_t *ppos)
416{ 416{
417 DEFINE_WAIT(wait); 417 DEFINE_WAIT(wait);
418 unsigned int minor=iminor(file->f_dentry->d_inode); 418 unsigned int minor=iminor(file->f_path.dentry->d_inode);
419 struct parport *port = lp_table[minor].dev->port; 419 struct parport *port = lp_table[minor].dev->port;
420 ssize_t retval = 0; 420 ssize_t retval = 0;
421 char *kbuf = lp_table[minor].lp_buffer; 421 char *kbuf = lp_table[minor].lp_buffer;
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index e67eef4867ba..089020e0ee5a 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -774,7 +774,7 @@ static loff_t memory_lseek(struct file * file, loff_t offset, int orig)
774{ 774{
775 loff_t ret; 775 loff_t ret;
776 776
777 mutex_lock(&file->f_dentry->d_inode->i_mutex); 777 mutex_lock(&file->f_path.dentry->d_inode->i_mutex);
778 switch (orig) { 778 switch (orig) {
779 case 0: 779 case 0:
780 file->f_pos = offset; 780 file->f_pos = offset;
@@ -789,7 +789,7 @@ static loff_t memory_lseek(struct file * file, loff_t offset, int orig)
789 default: 789 default:
790 ret = -EINVAL; 790 ret = -EINVAL;
791 } 791 }
792 mutex_unlock(&file->f_dentry->d_inode->i_mutex); 792 mutex_unlock(&file->f_path.dentry->d_inode->i_mutex);
793 return ret; 793 return ret;
794} 794}
795 795
diff --git a/drivers/char/nsc_gpio.c b/drivers/char/nsc_gpio.c
index 4d47d79bcea7..808d44e9a32a 100644
--- a/drivers/char/nsc_gpio.c
+++ b/drivers/char/nsc_gpio.c
@@ -41,7 +41,7 @@ void nsc_gpio_dump(struct nsc_gpio_ops *amp, unsigned index)
41ssize_t nsc_gpio_write(struct file *file, const char __user *data, 41ssize_t nsc_gpio_write(struct file *file, const char __user *data,
42 size_t len, loff_t *ppos) 42 size_t len, loff_t *ppos)
43{ 43{
44 unsigned m = iminor(file->f_dentry->d_inode); 44 unsigned m = iminor(file->f_path.dentry->d_inode);
45 struct nsc_gpio_ops *amp = file->private_data; 45 struct nsc_gpio_ops *amp = file->private_data;
46 struct device *dev = amp->dev; 46 struct device *dev = amp->dev;
47 size_t i; 47 size_t i;
@@ -104,7 +104,7 @@ ssize_t nsc_gpio_write(struct file *file, const char __user *data,
104ssize_t nsc_gpio_read(struct file *file, char __user * buf, 104ssize_t nsc_gpio_read(struct file *file, char __user * buf,
105 size_t len, loff_t * ppos) 105 size_t len, loff_t * ppos)
106{ 106{
107 unsigned m = iminor(file->f_dentry->d_inode); 107 unsigned m = iminor(file->f_path.dentry->d_inode);
108 int value; 108 int value;
109 struct nsc_gpio_ops *amp = file->private_data; 109 struct nsc_gpio_ops *amp = file->private_data;
110 110
diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c
index c1e3dd837fc8..4abd1eff61d6 100644
--- a/drivers/char/ppdev.c
+++ b/drivers/char/ppdev.c
@@ -106,7 +106,7 @@ static inline void pp_enable_irq (struct pp_struct *pp)
106static ssize_t pp_read (struct file * file, char __user * buf, size_t count, 106static ssize_t pp_read (struct file * file, char __user * buf, size_t count,
107 loff_t * ppos) 107 loff_t * ppos)
108{ 108{
109 unsigned int minor = iminor(file->f_dentry->d_inode); 109 unsigned int minor = iminor(file->f_path.dentry->d_inode);
110 struct pp_struct *pp = file->private_data; 110 struct pp_struct *pp = file->private_data;
111 char * kbuffer; 111 char * kbuffer;
112 ssize_t bytes_read = 0; 112 ssize_t bytes_read = 0;
@@ -189,7 +189,7 @@ static ssize_t pp_read (struct file * file, char __user * buf, size_t count,
189static ssize_t pp_write (struct file * file, const char __user * buf, 189static ssize_t pp_write (struct file * file, const char __user * buf,
190 size_t count, loff_t * ppos) 190 size_t count, loff_t * ppos)
191{ 191{
192 unsigned int minor = iminor(file->f_dentry->d_inode); 192 unsigned int minor = iminor(file->f_path.dentry->d_inode);
193 struct pp_struct *pp = file->private_data; 193 struct pp_struct *pp = file->private_data;
194 char * kbuffer; 194 char * kbuffer;
195 ssize_t bytes_written = 0; 195 ssize_t bytes_written = 0;
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 4c6782a1ecdb..092a01cc02da 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1048,7 +1048,7 @@ random_write(struct file * file, const char __user * buffer,
1048 if (p == buffer) { 1048 if (p == buffer) {
1049 return (ssize_t)ret; 1049 return (ssize_t)ret;
1050 } else { 1050 } else {
1051 struct inode *inode = file->f_dentry->d_inode; 1051 struct inode *inode = file->f_path.dentry->d_inode;
1052 inode->i_mtime = current_fs_time(inode->i_sb); 1052 inode->i_mtime = current_fs_time(inode->i_sb);
1053 mark_inode_dirty(inode); 1053 mark_inode_dirty(inode);
1054 return (ssize_t)(p - buffer); 1054 return (ssize_t)(p - buffer);
diff --git a/drivers/char/raw.c b/drivers/char/raw.c
index 3b32313f6eb4..645e20a06ece 100644
--- a/drivers/char/raw.c
+++ b/drivers/char/raw.c
@@ -75,7 +75,7 @@ static int raw_open(struct inode *inode, struct file *filp)
75 filp->f_flags |= O_DIRECT; 75 filp->f_flags |= O_DIRECT;
76 filp->f_mapping = bdev->bd_inode->i_mapping; 76 filp->f_mapping = bdev->bd_inode->i_mapping;
77 if (++raw_devices[minor].inuse == 1) 77 if (++raw_devices[minor].inuse == 1)
78 filp->f_dentry->d_inode->i_mapping = 78 filp->f_path.dentry->d_inode->i_mapping =
79 bdev->bd_inode->i_mapping; 79 bdev->bd_inode->i_mapping;
80 filp->private_data = bdev; 80 filp->private_data = bdev;
81 mutex_unlock(&raw_mutex); 81 mutex_unlock(&raw_mutex);
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c
index fc87070f1866..17d54e1331b2 100644
--- a/drivers/char/sonypi.c
+++ b/drivers/char/sonypi.c
@@ -979,7 +979,7 @@ static ssize_t sonypi_misc_read(struct file *file, char __user *buf,
979 } 979 }
980 980
981 if (ret > 0) { 981 if (ret > 0) {
982 struct inode *inode = file->f_dentry->d_inode; 982 struct inode *inode = file->f_path.dentry->d_inode;
983 inode->i_atime = current_fs_time(inode->i_sb); 983 inode->i_atime = current_fs_time(inode->i_sb);
984 } 984 }
985 985
diff --git a/drivers/char/tb0219.c b/drivers/char/tb0219.c
index bb1bad4c18f9..4c431cb7cf1b 100644
--- a/drivers/char/tb0219.c
+++ b/drivers/char/tb0219.c
@@ -164,7 +164,7 @@ static ssize_t tanbac_tb0219_read(struct file *file, char __user *buf, size_t le
164 unsigned int minor; 164 unsigned int minor;
165 char value; 165 char value;
166 166
167 minor = iminor(file->f_dentry->d_inode); 167 minor = iminor(file->f_path.dentry->d_inode);
168 switch (minor) { 168 switch (minor) {
169 case 0: 169 case 0:
170 value = get_led(); 170 value = get_led();
@@ -200,7 +200,7 @@ static ssize_t tanbac_tb0219_write(struct file *file, const char __user *data,
200 int retval = 0; 200 int retval = 0;
201 char c; 201 char c;
202 202
203 minor = iminor(file->f_dentry->d_inode); 203 minor = iminor(file->f_path.dentry->d_inode);
204 switch (minor) { 204 switch (minor) {
205 case 0: 205 case 0:
206 type = TYPE_LED; 206 type = TYPE_LED;
diff --git a/drivers/char/tipar.c b/drivers/char/tipar.c
index 9df0ca1be0e3..47fb20f69695 100644
--- a/drivers/char/tipar.c
+++ b/drivers/char/tipar.c
@@ -285,7 +285,7 @@ static ssize_t
285tipar_write (struct file *file, const char __user *buf, size_t count, 285tipar_write (struct file *file, const char __user *buf, size_t count,
286 loff_t * ppos) 286 loff_t * ppos)
287{ 287{
288 unsigned int minor = iminor(file->f_dentry->d_inode) - TIPAR_MINOR; 288 unsigned int minor = iminor(file->f_path.dentry->d_inode) - TIPAR_MINOR;
289 ssize_t n; 289 ssize_t n;
290 290
291 parport_claim_or_block(table[minor].dev); 291 parport_claim_or_block(table[minor].dev);
@@ -313,7 +313,7 @@ static ssize_t
313tipar_read(struct file *file, char __user *buf, size_t count, loff_t * ppos) 313tipar_read(struct file *file, char __user *buf, size_t count, loff_t * ppos)
314{ 314{
315 int b = 0; 315 int b = 0;
316 unsigned int minor = iminor(file->f_dentry->d_inode) - TIPAR_MINOR; 316 unsigned int minor = iminor(file->f_path.dentry->d_inode) - TIPAR_MINOR;
317 ssize_t retval = 0; 317 ssize_t retval = 0;
318 ssize_t n = 0; 318 ssize_t n = 0;
319 319
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index 0c856a6f3677..8a2d26e98ac4 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -1629,7 +1629,7 @@ static ssize_t tty_read(struct file * file, char __user * buf, size_t count,
1629 struct tty_ldisc *ld; 1629 struct tty_ldisc *ld;
1630 1630
1631 tty = (struct tty_struct *)file->private_data; 1631 tty = (struct tty_struct *)file->private_data;
1632 inode = file->f_dentry->d_inode; 1632 inode = file->f_path.dentry->d_inode;
1633 if (tty_paranoia_check(tty, inode, "tty_read")) 1633 if (tty_paranoia_check(tty, inode, "tty_read"))
1634 return -EIO; 1634 return -EIO;
1635 if (!tty || (test_bit(TTY_IO_ERROR, &tty->flags))) 1635 if (!tty || (test_bit(TTY_IO_ERROR, &tty->flags)))
@@ -1732,7 +1732,7 @@ static inline ssize_t do_tty_write(
1732 cond_resched(); 1732 cond_resched();
1733 } 1733 }
1734 if (written) { 1734 if (written) {
1735 struct inode *inode = file->f_dentry->d_inode; 1735 struct inode *inode = file->f_path.dentry->d_inode;
1736 inode->i_mtime = current_fs_time(inode->i_sb); 1736 inode->i_mtime = current_fs_time(inode->i_sb);
1737 ret = written; 1737 ret = written;
1738 } 1738 }
@@ -1763,7 +1763,7 @@ static ssize_t tty_write(struct file * file, const char __user * buf, size_t cou
1763 loff_t *ppos) 1763 loff_t *ppos)
1764{ 1764{
1765 struct tty_struct * tty; 1765 struct tty_struct * tty;
1766 struct inode *inode = file->f_dentry->d_inode; 1766 struct inode *inode = file->f_path.dentry->d_inode;
1767 ssize_t ret; 1767 ssize_t ret;
1768 struct tty_ldisc *ld; 1768 struct tty_ldisc *ld;
1769 1769
@@ -2170,7 +2170,7 @@ static void release_dev(struct file * filp)
2170 unsigned long flags; 2170 unsigned long flags;
2171 2171
2172 tty = (struct tty_struct *)filp->private_data; 2172 tty = (struct tty_struct *)filp->private_data;
2173 if (tty_paranoia_check(tty, filp->f_dentry->d_inode, "release_dev")) 2173 if (tty_paranoia_check(tty, filp->f_path.dentry->d_inode, "release_dev"))
2174 return; 2174 return;
2175 2175
2176 check_tty_count(tty, "release_dev"); 2176 check_tty_count(tty, "release_dev");
@@ -2680,7 +2680,7 @@ static unsigned int tty_poll(struct file * filp, poll_table * wait)
2680 int ret = 0; 2680 int ret = 0;
2681 2681
2682 tty = (struct tty_struct *)filp->private_data; 2682 tty = (struct tty_struct *)filp->private_data;
2683 if (tty_paranoia_check(tty, filp->f_dentry->d_inode, "tty_poll")) 2683 if (tty_paranoia_check(tty, filp->f_path.dentry->d_inode, "tty_poll"))
2684 return 0; 2684 return 0;
2685 2685
2686 ld = tty_ldisc_ref_wait(tty); 2686 ld = tty_ldisc_ref_wait(tty);
@@ -2696,7 +2696,7 @@ static int tty_fasync(int fd, struct file * filp, int on)
2696 int retval; 2696 int retval;
2697 2697
2698 tty = (struct tty_struct *)filp->private_data; 2698 tty = (struct tty_struct *)filp->private_data;
2699 if (tty_paranoia_check(tty, filp->f_dentry->d_inode, "tty_fasync")) 2699 if (tty_paranoia_check(tty, filp->f_path.dentry->d_inode, "tty_fasync"))
2700 return 0; 2700 return 0;
2701 2701
2702 retval = fasync_helper(fd, filp, on, &tty->fasync); 2702 retval = fasync_helper(fd, filp, on, &tty->fasync);
diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c
index f442b574b44a..26776517f04c 100644
--- a/drivers/char/vc_screen.c
+++ b/drivers/char/vc_screen.c
@@ -72,7 +72,7 @@ static loff_t vcs_lseek(struct file *file, loff_t offset, int orig)
72 int size; 72 int size;
73 73
74 down(&con_buf_sem); 74 down(&con_buf_sem);
75 size = vcs_size(file->f_dentry->d_inode); 75 size = vcs_size(file->f_path.dentry->d_inode);
76 switch (orig) { 76 switch (orig) {
77 default: 77 default:
78 up(&con_buf_sem); 78 up(&con_buf_sem);
@@ -98,7 +98,7 @@ static loff_t vcs_lseek(struct file *file, loff_t offset, int orig)
98static ssize_t 98static ssize_t
99vcs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) 99vcs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
100{ 100{
101 struct inode *inode = file->f_dentry->d_inode; 101 struct inode *inode = file->f_path.dentry->d_inode;
102 unsigned int currcons = iminor(inode); 102 unsigned int currcons = iminor(inode);
103 struct vc_data *vc; 103 struct vc_data *vc;
104 long pos; 104 long pos;
@@ -271,7 +271,7 @@ unlock_out:
271static ssize_t 271static ssize_t
272vcs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) 272vcs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
273{ 273{
274 struct inode *inode = file->f_dentry->d_inode; 274 struct inode *inode = file->f_path.dentry->d_inode;
275 unsigned int currcons = iminor(inode); 275 unsigned int currcons = iminor(inode);
276 struct vc_data *vc; 276 struct vc_data *vc;
277 long pos; 277 long pos;
diff --git a/drivers/char/viotape.c b/drivers/char/viotape.c
index 73c78bf75d7f..94d79cb8ce8d 100644
--- a/drivers/char/viotape.c
+++ b/drivers/char/viotape.c
@@ -442,7 +442,7 @@ static ssize_t viotap_write(struct file *file, const char *buf,
442 if (op == NULL) 442 if (op == NULL)
443 return -ENOMEM; 443 return -ENOMEM;
444 444
445 get_dev_info(file->f_dentry->d_inode, &devi); 445 get_dev_info(file->f_path.dentry->d_inode, &devi);
446 446
447 /* 447 /*
448 * We need to make sure we can send a request. We use 448 * We need to make sure we can send a request. We use
@@ -532,7 +532,7 @@ static ssize_t viotap_read(struct file *file, char *buf, size_t count,
532 if (op == NULL) 532 if (op == NULL)
533 return -ENOMEM; 533 return -ENOMEM;
534 534
535 get_dev_info(file->f_dentry->d_inode, &devi); 535 get_dev_info(file->f_path.dentry->d_inode, &devi);
536 536
537 /* 537 /*
538 * We need to make sure we can send a request. We use 538 * We need to make sure we can send a request. We use
@@ -612,7 +612,7 @@ static int viotap_ioctl(struct inode *inode, struct file *file,
612 if (op == NULL) 612 if (op == NULL)
613 return -ENOMEM; 613 return -ENOMEM;
614 614
615 get_dev_info(file->f_dentry->d_inode, &devi); 615 get_dev_info(file->f_path.dentry->d_inode, &devi);
616 616
617 down(&reqSem); 617 down(&reqSem);
618 618
@@ -777,7 +777,7 @@ static int viotap_open(struct inode *inode, struct file *file)
777 if (op == NULL) 777 if (op == NULL)
778 return -ENOMEM; 778 return -ENOMEM;
779 779
780 get_dev_info(file->f_dentry->d_inode, &devi); 780 get_dev_info(file->f_path.dentry->d_inode, &devi);
781 781
782 /* Note: We currently only support one mode! */ 782 /* Note: We currently only support one mode! */
783 if ((devi.devno >= viotape_numdev) || (devi.mode)) { 783 if ((devi.devno >= viotape_numdev) || (devi.mode)) {
@@ -822,7 +822,7 @@ static int viotap_release(struct inode *inode, struct file *file)
822 return -ENOMEM; 822 return -ENOMEM;
823 init_completion(&op->com); 823 init_completion(&op->com);
824 824
825 get_dev_info(file->f_dentry->d_inode, &devi); 825 get_dev_info(file->f_path.dentry->d_inode, &devi);
826 826
827 if (devi.devno >= viotape_numdev) { 827 if (devi.devno >= viotape_numdev) {
828 ret = -ENODEV; 828 ret = -ENODEV;
diff --git a/drivers/char/vr41xx_giu.c b/drivers/char/vr41xx_giu.c
index 8e7949305171..a744dad9cf45 100644
--- a/drivers/char/vr41xx_giu.c
+++ b/drivers/char/vr41xx_giu.c
@@ -506,7 +506,7 @@ static ssize_t gpio_read(struct file *file, char __user *buf, size_t len,
506 unsigned int pin; 506 unsigned int pin;
507 char value = '0'; 507 char value = '0';
508 508
509 pin = iminor(file->f_dentry->d_inode); 509 pin = iminor(file->f_path.dentry->d_inode);
510 if (pin >= giu_nr_pins) 510 if (pin >= giu_nr_pins)
511 return -EBADF; 511 return -EBADF;
512 512
@@ -530,7 +530,7 @@ static ssize_t gpio_write(struct file *file, const char __user *data,
530 char c; 530 char c;
531 int retval = 0; 531 int retval = 0;
532 532
533 pin = iminor(file->f_dentry->d_inode); 533 pin = iminor(file->f_path.dentry->d_inode);
534 if (pin >= giu_nr_pins) 534 if (pin >= giu_nr_pins)
535 return -EBADF; 535 return -EBADF;
536 536