[MTD] [NAND] Hardware ECC controller on at91sam9263 / at91sam9260
[safe/jmp/linux-2.6] / drivers / mtd / mtdsuper.c
index e376f45..28cc678 100644 (file)
@@ -203,7 +203,7 @@ int get_sb_mtd(struct file_system_type *fs_type, int flags,
                goto not_an_MTD_device;
 
        mtdnr = iminor(nd.path.dentry->d_inode);
-       path_release(&nd);
+       path_put(&nd.path);
 
        return get_sb_mtd_nr(fs_type, flags, dev_name, data, mtdnr, fill_super,
                             mnt);
@@ -214,7 +214,7 @@ not_an_MTD_device:
                       "MTD: Attempt to mount non-MTD device \"%s\"\n",
                       dev_name);
 out:
-       path_release(&nd);
+       path_put(&nd.path);
        return ret;
 
 }