]> git.sur5r.net Git - u-boot/commit
env_nand: Use nand_read_skip_bad instead of nand_read
authorSteve Sakoman <steve@sakoman.com>
Fri, 3 Dec 2010 13:25:43 +0000 (13:25 +0000)
committerScott Wood <scottwood@freescale.com>
Tue, 7 Dec 2010 00:28:33 +0000 (18:28 -0600)
commit068a208b4a3e1e0dfc8dea6ebbd80b62ae280732
tree91abd21ebe550f27e0a99ec0d91106db35347e02
parentf12af1f38dc59a6dfe0fed1359e1a05e700a435b
env_nand: Use nand_read_skip_bad instead of nand_read

The nand-read function returns an error code if correctable errors have occurred.
This is not desirable, since the errors have been corrected!

This patch switches to the nand_read_skip_bad function which does not
return an error code if the errors are correctable.

Signed-off-by: Steve Sakoman <steve.sakoman@linaro.org>
Acked-by: Scott Wood <scottwood@freescale.com>
common/env_nand.c