summaryrefslogtreecommitdiff
path: root/src/flash/nand/s3c6400.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-12-31 19:46:09 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-01-02 19:58:58 +0100
commit093ec6656ab7fb523b8a811f4bd628e3b50f8367 (patch)
tree456ca54797aad5484fc6a5d868fedf48da2e0fab /src/flash/nand/s3c6400.c
parentf49283a062192800a3263dcef620911010ffc718 (diff)
downloadopenocd+libswd-093ec6656ab7fb523b8a811f4bd628e3b50f8367.tar.gz
openocd+libswd-093ec6656ab7fb523b8a811f4bd628e3b50f8367.tar.bz2
openocd+libswd-093ec6656ab7fb523b8a811f4bd628e3b50f8367.tar.xz
openocd+libswd-093ec6656ab7fb523b8a811f4bd628e3b50f8367.zip
NAND/S3CXXXX: remove private "target" copy
Remove "target" form private data, and use common one in struct nand_block. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/flash/nand/s3c6400.c')
-rw-r--r--src/flash/nand/s3c6400.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/flash/nand/s3c6400.c b/src/flash/nand/s3c6400.c
index 960447d9..a6f80431 100644
--- a/src/flash/nand/s3c6400.c
+++ b/src/flash/nand/s3c6400.c
@@ -43,8 +43,7 @@ NAND_DEVICE_COMMAND_HANDLER(s3c6400_nand_device_command)
static int s3c6400_init(struct nand_device *nand)
{
- struct s3c24xx_nand_controller *s3c24xx_info = nand->controller_priv;
- struct target *target = s3c24xx_info->target;
+ struct target *target = nand->target;
target_write_u32(target, S3C2410_NFCONF,
S3C2440_NFCONF_TACLS(3) |