From: Zachary T Welch Date: Sat, 12 Dec 2009 02:43:27 +0000 (-0800) Subject: add missing call to add new NAND devices X-Git-Tag: v0.4.0-rc1~51 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=75892bfc6ecc41ae19d65c862f0db6f2c1023c2d;p=openocd 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. --- 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; }