diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-12-11 18:43:27 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-12-11 18:45:34 -0800 |
commit | 75892bfc6ecc41ae19d65c862f0db6f2c1023c2d (patch) | |
tree | 8ff4440108c5e692e2bc308bc262322bf11e3f1b | |
parent | 8438dee786d857723e29eef23f897df6b194a793 (diff) | |
download | openocd_libswd-75892bfc6ecc41ae19d65c862f0db6f2c1023c2d.tar.gz openocd_libswd-75892bfc6ecc41ae19d65c862f0db6f2c1023c2d.tar.bz2 openocd_libswd-75892bfc6ecc41ae19d65c862f0db6f2c1023c2d.tar.xz openocd_libswd-75892bfc6ecc41ae19d65c862f0db6f2c1023c2d.zip |
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.
-rw-r--r-- | src/flash/nand/imp.h | 2 | ||||
-rw-r--r-- | src/flash/nand/tcl.c | 2 |
2 files changed, 4 insertions, 0 deletions
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; } |