diff options
author | Kyungmin Park <kyungmin.park@samsung.com> | 2005-12-16 03:17:29 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-12-19 01:28:24 +0100 |
commit | 532a37cf8d05dd1aa5631be836036204b0d2b4a1 (patch) | |
tree | 4eacbc7f92ce372187ebb445976cae93c4d4b2f5 /drivers/mtd/onenand/onenand_bbt.c | |
parent | [PATCH] mtd onenand driver: fix unlock problem in DDP (diff) | |
download | linux-532a37cf8d05dd1aa5631be836036204b0d2b4a1.tar.xz linux-532a37cf8d05dd1aa5631be836036204b0d2b4a1.zip |
[PATCH] mtd onenand driver: reduce stack usage
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/mtd/onenand/onenand_bbt.c')
-rw-r--r-- | drivers/mtd/onenand/onenand_bbt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/onenand/onenand_bbt.c b/drivers/mtd/onenand/onenand_bbt.c index f40190f499e1..4510d3361eaa 100644 --- a/drivers/mtd/onenand/onenand_bbt.c +++ b/drivers/mtd/onenand/onenand_bbt.c @@ -118,10 +118,10 @@ static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr */ static inline int onenand_memory_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd) { - unsigned char data_buf[MAX_ONENAND_PAGESIZE]; + struct onenand_chip *this = mtd->priv; bd->options &= ~NAND_BBT_SCANEMPTY; - return create_bbt(mtd, data_buf, bd, -1); + return create_bbt(mtd, this->page_buf, bd, -1); } /** |