Commit 4482dfad authored by Josef Sipek's avatar Josef Sipek Committed by Linus Torvalds

[PATCH] struct path: convert isdn

Signed-off-by: default avatarJosef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b23463b9
...@@ -1010,7 +1010,7 @@ static int capinc_tty_open(struct tty_struct * tty, struct file * file) ...@@ -1010,7 +1010,7 @@ static int capinc_tty_open(struct tty_struct * tty, struct file * file)
{ {
struct capiminor *mp; struct capiminor *mp;
if ((mp = capiminor_find(iminor(file->f_dentry->d_inode))) == 0) if ((mp = capiminor_find(iminor(file->f_path.dentry->d_inode))) == 0)
return -ENXIO; return -ENXIO;
if (mp->nccip == 0) if (mp->nccip == 0)
return -ENXIO; return -ENXIO;
......
...@@ -204,7 +204,7 @@ hysdn_log_read(struct file *file, char __user *buf, size_t count, loff_t * off) ...@@ -204,7 +204,7 @@ hysdn_log_read(struct file *file, char __user *buf, size_t count, loff_t * off)
{ {
struct log_data *inf; struct log_data *inf;
int len; int len;
struct proc_dir_entry *pde = PDE(file->f_dentry->d_inode); struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode);
struct procdata *pd = NULL; struct procdata *pd = NULL;
hysdn_card *card; hysdn_card *card;
...@@ -354,7 +354,7 @@ static unsigned int ...@@ -354,7 +354,7 @@ static unsigned int
hysdn_log_poll(struct file *file, poll_table * wait) hysdn_log_poll(struct file *file, poll_table * wait)
{ {
unsigned int mask = 0; unsigned int mask = 0;
struct proc_dir_entry *pde = PDE(file->f_dentry->d_inode); struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode);
hysdn_card *card; hysdn_card *card;
struct procdata *pd = NULL; struct procdata *pd = NULL;
......
...@@ -1059,7 +1059,7 @@ isdn_info_update(void) ...@@ -1059,7 +1059,7 @@ isdn_info_update(void)
static ssize_t static ssize_t
isdn_read(struct file *file, char __user *buf, size_t count, loff_t * off) isdn_read(struct file *file, char __user *buf, size_t count, loff_t * off)
{ {
uint minor = iminor(file->f_dentry->d_inode); uint minor = iminor(file->f_path.dentry->d_inode);
int len = 0; int len = 0;
int drvidx; int drvidx;
int chidx; int chidx;
...@@ -1166,7 +1166,7 @@ isdn_read(struct file *file, char __user *buf, size_t count, loff_t * off) ...@@ -1166,7 +1166,7 @@ isdn_read(struct file *file, char __user *buf, size_t count, loff_t * off)
static ssize_t static ssize_t
isdn_write(struct file *file, const char __user *buf, size_t count, loff_t * off) isdn_write(struct file *file, const char __user *buf, size_t count, loff_t * off)
{ {
uint minor = iminor(file->f_dentry->d_inode); uint minor = iminor(file->f_path.dentry->d_inode);
int drvidx; int drvidx;
int chidx; int chidx;
int retval; int retval;
...@@ -1228,7 +1228,7 @@ static unsigned int ...@@ -1228,7 +1228,7 @@ static unsigned int
isdn_poll(struct file *file, poll_table * wait) isdn_poll(struct file *file, poll_table * wait)
{ {
unsigned int mask = 0; unsigned int mask = 0;
unsigned int minor = iminor(file->f_dentry->d_inode); unsigned int minor = iminor(file->f_path.dentry->d_inode);
int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
lock_kernel(); lock_kernel();
......
...@@ -667,7 +667,7 @@ isdn_ppp_poll(struct file *file, poll_table * wait) ...@@ -667,7 +667,7 @@ isdn_ppp_poll(struct file *file, poll_table * wait)
if (is->debug & 0x2) if (is->debug & 0x2)
printk(KERN_DEBUG "isdn_ppp_poll: minor: %d\n", printk(KERN_DEBUG "isdn_ppp_poll: minor: %d\n",
iminor(file->f_dentry->d_inode)); iminor(file->f_path.dentry->d_inode));
/* just registers wait_queue hook. This doesn't really wait. */ /* just registers wait_queue hook. This doesn't really wait. */
poll_wait(file, &is->wq, wait); poll_wait(file, &is->wq, wait);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment