mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
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:
@@ -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);
|
||||
|
||||
@@ -580,6 +580,8 @@ static COMMAND_HELPER(create_nand_device, const char *bank_name,
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
nand_device_add(c);
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user