IXP: Fix NAND build warning on PDNB3 and SCPU
authorMarek Vasut <marex@denx.de>
Tue, 6 Mar 2012 00:10:00 +0000 (01:10 +0100)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 26 Mar 2012 21:09:26 +0000 (23:09 +0200)
commit44e63c228ea8730af5782d1c29c5bef2e57c9b0e
tree7b1b3d1174113527a55348efbb6ce2174fb61059
parent2152df67c351f167641e0000177c0de746be8665
IXP: Fix NAND build warning on PDNB3 and SCPU

nand.c: In function ‘pdnb3_nand_read_buf’:
nand.c:107:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
nand.c: In function ‘pdnb3_nand_dev_ready’:
nand.c:124:18: warning: variable ‘val’ set but not used [-Wunused-but-set-variable]

Remove the 4-byte-at-time read mode altogether, the most is bogus and will
likely cause unaligned accesses.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Bryan Hundven <bryanhundven@gmail.com>
Cc: Michael Schwingen <rincewind@discworld.dascon.de>
board/prodrive/pdnb3/nand.c