summaryrefslogtreecommitdiff
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorKyungmin Park <kmpark@infradead.org>2009-07-21 11:58:04 +0900
committerWolfgang Denk <wd@denx.de>2009-08-26 22:06:50 +0200
commitce3277a6f2c082f39596d3d3d88dd0a5bc91439d (patch)
treeaf54d2f839ce493a1be456abe5429763dde9c484 /drivers/mtd/onenand
parent0d042037b3cf8693ea0f793d0c292430bfc5a95c (diff)
downloadu-boot-imx-ce3277a6f2c082f39596d3d3d88dd0a5bc91439d.zip
u-boot-imx-ce3277a6f2c082f39596d3d3d88dd0a5bc91439d.tar.gz
u-boot-imx-ce3277a6f2c082f39596d3d3d88dd0a5bc91439d.tar.bz2
OneNAND: Remove unused read_spareram
Remove unused read_spareram and add unlock_all as kernel does Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/onenand_base.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index d482437..368fa6e 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -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;