summaryrefslogtreecommitdiff
path: root/src/flash/davinci_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/davinci_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/davinci_nand.c')
-rw-r--r--src/flash/davinci_nand.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/flash/davinci_nand.c b/src/flash/davinci_nand.c
index ebd9ba8d..72cd378a 100644
--- a/src/flash/davinci_nand.c
+++ b/src/flash/davinci_nand.c
@@ -78,11 +78,6 @@ static int halted(struct target *target, const char *label)
return false;
}
-static int davinci_register_commands(struct command_context *cmd_ctx)
-{
- return ERROR_OK;
-}
-
static int davinci_init(struct nand_device *nand)
{
struct davinci_nand *info = nand->controller_priv;
@@ -747,7 +742,6 @@ fail:
struct nand_flash_controller davinci_nand_controller = {
.name = "davinci",
.nand_device_command = davinci_nand_device_command,
- .register_commands = davinci_register_commands,
.init = davinci_init,
.reset = davinci_reset,
.command = davinci_command,