aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/dsp56k.c
diff options
context:
space:
mode:
authorJosef Sipek <jsipek@fsl.cs.sunysb.edu>2006-12-08 05:36:55 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:44 -0500
commita7113a966241b700aecc7b8cb326cecb62e3c4b2 (patch)
treeb28920a82e7cad67ea6e55826e161ba0e4cf9782 /drivers/char/dsp56k.c
parent6c648be6f4183775679c1f2cc4d094128f104fb2 (diff)
[PATCH] struct path: convert char-drivers
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/dsp56k.c')
-rw-r--r--drivers/char/dsp56k.c6
1 files changed, 3 insertions, 3 deletions
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 {