diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-22 06:24:19 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-24 21:37:35 -0800 |
commit | 90d09e35e4be6f0b35899238b253154249f85cb6 (patch) | |
tree | aecc837b38ec8386d7ff889f7ca1abc54cbac5a4 /src/flash/orion_nand.c | |
parent | ad090413a8dfacccc993ff15b8376e0f2bd56712 (diff) |
remove nand_controller->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/orion_nand.c')
-rw-r--r-- | src/flash/orion_nand.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/flash/orion_nand.c b/src/flash/orion_nand.c index c8fc9698..77a03f27 100644 --- a/src/flash/orion_nand.c +++ b/src/flash/orion_nand.c @@ -120,11 +120,6 @@ static int orion_nand_controller_ready(struct nand_device *nand, int timeout) return 1; } -static int orion_nand_register_commands(struct command_context *cmd_ctx) -{ - return ERROR_OK; -} - NAND_DEVICE_COMMAND_HANDLER(orion_nand_device_command) { struct orion_nand_controller *hw; @@ -180,7 +175,6 @@ struct nand_flash_controller orion_nand_controller = .reset = orion_nand_reset, .controller_ready = orion_nand_controller_ready, .nand_device_command = orion_nand_device_command, - .register_commands = orion_nand_register_commands, .init = orion_nand_init, }; |