diff options
Diffstat (limited to 'src/flash/str9x.c')
-rw-r--r-- | src/flash/str9x.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/flash/str9x.c b/src/flash/str9x.c index f6ad51af..98f15e75 100644 --- a/src/flash/str9x.c +++ b/src/flash/str9x.c @@ -696,14 +696,9 @@ static const struct command_registration str9x_command_handlers[] = { COMMAND_REGISTRATION_DONE }; -static int str9x_register_commands(struct command_context *cmd_ctx) -{ - return register_commands(cmd_ctx, NULL, str9x_command_handlers); -} - struct flash_driver str9x_flash = { .name = "str9x", - .register_commands = &str9x_register_commands, + .commands = str9x_command_handlers, .flash_bank_command = &str9x_flash_bank_command, .erase = &str9x_erase, .protect = &str9x_protect, |