]> err.no Git - linux-2.6/blobdiff - drivers/sbus/char/display7seg.c
Pull ec into test branch
[linux-2.6] / drivers / sbus / char / display7seg.c
index c3a51d1fae5de6df86a7270f44540e3cabd07fcb..a4909e0c7f83877d435869735fa8ecffd30d3808 100644 (file)
@@ -121,7 +121,7 @@ static long d7s_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        __u8 ireg = 0;
        int error = 0;
 
-       if (D7S_MINOR != iminor(file->f_dentry->d_inode))
+       if (D7S_MINOR != iminor(file->f_path.dentry->d_inode))
                return -ENODEV;
 
        lock_kernel();
@@ -184,7 +184,7 @@ static int __init d7s_init(void)
 
        for_each_ebus(ebus) {
                for_each_ebusdev(edev, ebus) {
-                       if (!strcmp(edev->prom_name, D7S_OBPNAME))
+                       if (!strcmp(edev->prom_node->name, D7S_OBPNAME))
                                goto ebus_done;
                }
        }