diff options
Diffstat (limited to 'src/flash/nor/core.c')
-rw-r--r-- | src/flash/nor/core.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c index 2dbf1142..0fff8efc 100644 --- a/src/flash/nor/core.c +++ b/src/flash/nor/core.c @@ -25,19 +25,8 @@ #include <target/image.h> // in flash.c, to be moved here -extern struct flash_driver *flash_drivers[]; extern struct flash_bank *flash_banks; -struct flash_driver *flash_driver_find_by_name(const char *name) -{ - for (unsigned i = 0; flash_drivers[i]; i++) - { - if (strcmp(name, flash_drivers[i]->name) == 0) - return flash_drivers[i]; - } - return NULL; -} - int flash_driver_erase(struct flash_bank *bank, int first, int last) { int retval; |