summaryrefslogtreecommitdiff
path: root/src/flash/s3c2440_nand.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-10 05:32:51 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 10:51:46 -0800
commit76868e071306bc83d25b89e57b785fef4637c4c8 (patch)
tree6ef82afc7c02f98a40050bc0788319a1761e44c5 /src/flash/s3c2440_nand.c
parentd02fee197f62331e36e9de110040f0170341c3e8 (diff)
downloadopenocd+libswd-76868e071306bc83d25b89e57b785fef4637c4c8.tar.gz
openocd+libswd-76868e071306bc83d25b89e57b785fef4637c4c8.tar.bz2
openocd+libswd-76868e071306bc83d25b89e57b785fef4637c4c8.tar.xz
openocd+libswd-76868e071306bc83d25b89e57b785fef4637c4c8.zip
s3c24xx: use COMMAND_HANDLER with command helper
Add S3C24XX_DEVICE_COMMAND macros to abstract common command handler conventions.
Diffstat (limited to 'src/flash/s3c2440_nand.c')
-rw-r--r--src/flash/s3c2440_nand.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/flash/s3c2440_nand.c b/src/flash/s3c2440_nand.c
index fd1fbd0a..c6d658d4 100644
--- a/src/flash/s3c2440_nand.c
+++ b/src/flash/s3c2440_nand.c
@@ -36,11 +36,7 @@ static int s3c2440_nand_device_command(struct command_context_s *cmd_ctx, char *
struct nand_device_s *nand)
{
s3c24xx_nand_controller_t *info;
-
- info = s3c24xx_nand_device_command(cmd_ctx, cmd, args, argc, nand);
- if (info == NULL) {
- return ERROR_NAND_DEVICE_INVALID;
- }
+ CALL_S3C24XX_DEVICE_COMMAND(nand, &info);
/* fill in the address fields for the core device */
info->cmd = S3C2440_NFCMD;