summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-03-26 16:07:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2010-03-30 14:14:58 +0200
commitd03831887e5ed21ae1052f99d1f6b9c61f655ab2 (patch)
treec9acc0fdf2a3b6e10481b01c74677acb6f161952 /drivers
parentd5578b81799a61eecca90152a3a1c392caab3638 (diff)
downloadbarebox-d03831887e5ed21ae1052f99d1f6b9c61f655ab2.tar.gz
barebox-d03831887e5ed21ae1052f99d1f6b9c61f655ab2.tar.xz
imx_nand: use memcpy for copying from/to buffer
We do not need to use memcpy32 in read_buf/write_buf because in these functions we only access SDRAM and not the internal SRAM buffer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nand/nand_imx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nand/nand_imx.c b/drivers/nand/nand_imx.c
index 5f92e2f519..398a2686f4 100644
--- a/drivers/nand/nand_imx.c
+++ b/drivers/nand/nand_imx.c
@@ -505,7 +505,7 @@ static void imx_nand_write_buf(struct mtd_info *mtd,
int n = mtd->oobsize + mtd->writesize - col;
n = min(n, len);
- memcpy32(host->data_buf + col, buf, n);
+ memcpy(host->data_buf + col, buf, n);
host->buf_start += n;
}
@@ -529,7 +529,7 @@ static void imx_nand_read_buf(struct mtd_info *mtd, u_char * buf, int len)
n = min(n, len);
- memcpy32(buf, host->data_buf + col, len);
+ memcpy(buf, host->data_buf + col, len);
host->buf_start += len;
}