X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fzorro%2Fproc.c;h=b3ce8859a586e58a6beb69b5aaa6fa4a86b7e288;hb=59b8175c771040afcd4ad67022b0cc80c216b866;hp=7aa2d3de6d37d3378a96378c520c2ac5fef276a2;hpb=d998265feb7cbcf74e27e3057dac309dcad47bf7;p=linux-2.6 diff --git a/drivers/zorro/proc.c b/drivers/zorro/proc.c index 7aa2d3de6d..b3ce8859a5 100644 --- a/drivers/zorro/proc.c +++ b/drivers/zorro/proc.c @@ -47,7 +47,7 @@ proc_bus_zorro_lseek(struct file *file, loff_t off, int whence) static ssize_t proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) { - struct inode *ino = file->f_dentry->d_inode; + struct inode *ino = file->f_path.dentry->d_inode; struct proc_dir_entry *dp = PDE(ino); struct zorro_dev *z = dp->data; struct ConfigDev cd; @@ -75,7 +75,7 @@ proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t * return nbytes; } -static struct file_operations proc_bus_zorro_operations = { +static const struct file_operations proc_bus_zorro_operations = { .llseek = proc_bus_zorro_lseek, .read = proc_bus_zorro_read, };