mtd: introduce mtd_read_oob interface
[deliverable/linux.git] / drivers / staging / spectra / lld_mtd.c
index 2eb032131960e2acf714fec6572dba4cb8c25794..ed8e5f06708739e9ae5243b3359cd8dc5ab49c8f 100644 (file)
@@ -351,9 +351,9 @@ u16 mtd_Read_Page_Main_Spare(u8 *read_data, u32 Block,
                ops.ooblen = BTSIG_BYTES;
                ops.ooboffs = 0;
 
-               ret = spectra_mtd->read_oob(spectra_mtd,
-                                           (Block * spectra_mtd->erasesize) + (Page * spectra_mtd->writesize),
-                                           &ops);
+               ret = mtd_read_oob(spectra_mtd,
+                                  (Block * spectra_mtd->erasesize) + (Page * spectra_mtd->writesize),
+                                  &ops);
                if (ret) {
                        printk(KERN_ERR "%s failed %d\n", __func__, ret);
                        return FAIL;
@@ -484,9 +484,9 @@ u16 mtd_Read_Page_Spare(u8 *read_data, u32 Block,
                ops.ooblen = BTSIG_BYTES;
                ops.ooboffs = 0;
 
-               ret = spectra_mtd->read_oob(spectra_mtd,
-                                           (Block * spectra_mtd->erasesize) + (Page * spectra_mtd->writesize),
-                                           &ops);
+               ret = mtd_read_oob(spectra_mtd,
+                                  (Block * spectra_mtd->erasesize) + (Page * spectra_mtd->writesize),
+                                  &ops);
                if (ret) {
                        printk(KERN_ERR "%s failed %d\n", __func__, ret);
                        return FAIL;
This page took 0.043725 seconds and 5 git commands to generate.