summaryrefslogtreecommitdiff
path: root/src/flash/orion_nand.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-22 06:24:19 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-24 21:37:35 -0800
commit90d09e35e4be6f0b35899238b253154249f85cb6 (patch)
treeaecc837b38ec8386d7ff889f7ca1abc54cbac5a4 /src/flash/orion_nand.c
parentad090413a8dfacccc993ff15b8376e0f2bd56712 (diff)
downloadopenocd+libswd-90d09e35e4be6f0b35899238b253154249f85cb6.tar.gz
openocd+libswd-90d09e35e4be6f0b35899238b253154249f85cb6.tar.bz2
openocd+libswd-90d09e35e4be6f0b35899238b253154249f85cb6.tar.xz
openocd+libswd-90d09e35e4be6f0b35899238b253154249f85cb6.zip
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.c6
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,
};