All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP2 NAND: Fix __raw_readsl() length argument
@ 2008-10-22 20:58 Juha Kuikka
  2008-10-22 21:46 ` David Brownell
  0 siblings, 1 reply; 10+ messages in thread
From: Juha Kuikka @ 2008-10-22 20:58 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

__raw_readsl() takes data length in longs so divide byte length by
four instead of two.

Signed-off-by: Juha Kuikka <juha.kuikka@gmail.com>
---
 drivers/mtd/nand/omap2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
 mode change 100644 => 100755 drivers/mtd/nand/omap2.c

diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
old mode 100644
new mode 100755
index 2ede116..2673ae4
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -196,7 +196,7 @@ static void omap_read_buf16(struct mtd_info *mtd,
u_char *buf, int len)
 {
        struct nand_chip *nand = mtd->priv;

-       __raw_readsl(nand->IO_ADDR_R, buf, len / 2);
+       __raw_readsl(nand->IO_ADDR_R, buf, len / 4);
 }

 /*
--
1.6.0.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-12-05 23:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-22 20:58 [PATCH] OMAP2 NAND: Fix __raw_readsl() length argument Juha Kuikka
2008-10-22 21:46 ` David Brownell
2008-10-22 21:52   ` Juha Kuikka
2008-10-22 22:02     ` David Brownell
2008-10-22 22:23       ` Juha Kuikka
2008-10-23 21:51         ` Juha Kuikka
2008-10-23 22:16           ` David Brownell
2008-10-25  0:19             ` Bug: enabling USB-TLL fclk Pandita, Vikram
2008-12-05 23:05               ` Steve Sakoman
2008-10-24  6:44           ` [PATCH] OMAP2 NAND: Fix __raw_readsl() length argument Singh, Vimal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.