diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-22 06:12:04 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-24 21:37:35 -0800 |
commit | ad090413a8dfacccc993ff15b8376e0f2bd56712 (patch) | |
tree | 361fbbe3c90adaa54cb1c894ad108647224cdd3f /src/flash/tms470.c | |
parent | 6b9bb584a5edec4889b12ed3f99a1e2eeab1ada2 (diff) |
remove flash_driver->register_callbacks
Replace flash_driver callback with pointer to command_registration.
Eliminates all related routines and allows drivers to omit commands.
Diffstat (limited to 'src/flash/tms470.c')
-rw-r--r-- | src/flash/tms470.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/flash/tms470.c b/src/flash/tms470.c index 3f32b51c..682013ef 100644 --- a/src/flash/tms470.c +++ b/src/flash/tms470.c @@ -848,11 +848,6 @@ static const struct command_registration tms470_command_handlers[] = { COMMAND_REGISTRATION_DONE }; -static int tms470_register_commands(struct command_context *cmd_ctx) -{ - return register_commands(cmd_ctx, NULL, tms470_command_handlers); -} - /* ---------------------------------------------------------------------- */ static int tms470_erase(struct flash_bank *bank, int first, int last) @@ -1263,7 +1258,7 @@ FLASH_BANK_COMMAND_HANDLER(tms470_flash_bank_command) struct flash_driver tms470_flash = { .name = "tms470", - .register_commands = &tms470_register_commands, + .commands = tms470_command_handlers, .flash_bank_command = &tms470_flash_bank_command, .erase = &tms470_erase, .protect = &tms470_protect, |