]> Pileus Git - ~andy/linux/blobdiff - drivers/mtd/nftlcore.c
mtd: introduce mtd_get_user_prot_info interface
[~andy/linux] / drivers / mtd / nftlcore.c
index 7497f5efc26b08683507b241114f230a6ccc0183..8847e60ad167e9b38b840519ea512a9b24d4bdcb 100644 (file)
@@ -174,7 +174,7 @@ int nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len,
        ops.oobbuf = buf;
        ops.datbuf = NULL;
 
-       res = mtd->write_oob(mtd, offs & ~mask, &ops);
+       res = mtd_write_oob(mtd, offs & ~mask, &ops);
        *retlen = ops.oobretlen;
        return res;
 }
@@ -198,7 +198,7 @@ static int nftl_write(struct mtd_info *mtd, loff_t offs, size_t len,
        ops.datbuf = buf;
        ops.len = len;
 
-       res = mtd->write_oob(mtd, offs & ~mask, &ops);
+       res = mtd_write_oob(mtd, offs & ~mask, &ops);
        *retlen = ops.retlen;
        return res;
 }