From 75892bfc6ecc41ae19d65c862f0db6f2c1023c2d Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Fri, 11 Dec 2009 18:43:27 -0800 Subject: [PATCH] add missing call to add new NAND devices I forgot to add a call to the newly factored nand_device_add(), along with its forward declaration. --- src/flash/nand/imp.h | 2 ++ src/flash/nand/tcl.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/flash/nand/imp.h b/src/flash/nand/imp.h index e0d411fa..e6c9c5ff 100644 --- a/src/flash/nand/imp.h +++ b/src/flash/nand/imp.h @@ -22,6 +22,8 @@ #include "core.h" #include "driver.h" +void nand_device_add(struct nand_device *c); + int nand_write_page(struct nand_device *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size); diff --git a/src/flash/nand/tcl.c b/src/flash/nand/tcl.c index e69882bb..ad77d7ca 100644 --- a/src/flash/nand/tcl.c +++ b/src/flash/nand/tcl.c @@ -580,6 +580,8 @@ static COMMAND_HELPER(create_nand_device, const char *bank_name, return ERROR_OK; } + nand_device_add(c); + return ERROR_OK; } -- 2.39.5