OneNAND: Remove unused read_spareram
authorKyungmin Park <kmpark@infradead.org>
Tue, 21 Jul 2009 02:58:04 +0000 (11:58 +0900)
committerScott Wood <scottwood@freescale.com>
Wed, 26 Aug 2009 20:37:02 +0000 (15:37 -0500)
Remove unused read_spareram and add unlock_all as kernel does

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/onenand/onenand_base.c
include/linux/mtd/onenand.h

index d482437a462f254cb9ded756e97fb91a9f665c3a..368fa6ef68eb2974e483c451d74c4d362251d627 100644 (file)
@@ -1010,7 +1010,7 @@ int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from,
                if (ret)
                        break;
 
-               this->read_spareram(mtd, 0, ONENAND_SPARERAM, buf, column, thislen);
+               this->read_bufferram(mtd, 0, ONENAND_SPARERAM, buf, column, thislen);
                read += thislen;
                if (read == len)
                        break;
@@ -2104,8 +2104,6 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
 
        if (!this->read_bufferram)
                this->read_bufferram = onenand_read_bufferram;
-       if (!this->read_spareram)
-               this->read_spareram = onenand_read_bufferram;
        if (!this->write_bufferram)
                this->write_bufferram = onenand_write_bufferram;
 
index 2597e347b4b19365a4aa83d22692878a68376a45..06f7bafeae1c56682e2e87f4b1bd8a6a23f2aed9 100644 (file)
@@ -83,10 +83,9 @@ struct onenand_chip {
                        size_t len);
        int (*wait) (struct mtd_info *mtd, int state);
        int (*bbt_wait) (struct mtd_info *mtd, int state);
+       void (*unlock_all)(struct mtd_info *mtd);
        int (*read_bufferram) (struct mtd_info *mtd, loff_t addr, int area,
                               unsigned char *buffer, int offset, size_t count);
-       int (*read_spareram) (struct mtd_info *mtd, loff_t addr, int area,
-                              unsigned char *buffer, int offset, size_t count);
        int (*write_bufferram) (struct mtd_info *mtd, loff_t addr, int area,
                                const unsigned char *buffer, int offset,
                                size_t count);