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.
This commit is contained in:
Zachary T Welch 2009-12-11 18:43:27 -08:00
parent 8438dee786
commit 75892bfc6e
2 changed files with 4 additions and 0 deletions

View 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);

View 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;
}