]> git.sur5r.net Git - openocd/commitdiff
add missing call to add new NAND devices
authorZachary T Welch <zw@superlucidity.net>
Sat, 12 Dec 2009 02:43:27 +0000 (18:43 -0800)
committerZachary T Welch <zw@superlucidity.net>
Sat, 12 Dec 2009 02:45:34 +0000 (18:45 -0800)
I forgot to add a call to the newly factored nand_device_add(), along
with its forward declaration.

src/flash/nand/imp.h
src/flash/nand/tcl.c

index e0d411fa4e44cd8b5978e93927f8797c75f3bc14..e6c9c5fffaff50690a90db434bbc41ee3a80fc60 100644 (file)
@@ -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);
index e69882bb5851397b466d2d8a77db70fa752da29c..ad77d7ca852ca83088c35987e2abbc600eb58da6 100644 (file)
@@ -580,6 +580,8 @@ static COMMAND_HELPER(create_nand_device, const char *bank_name,
                return ERROR_OK;
        }
 
+       nand_device_add(c);
+
        return ERROR_OK;
 }