9
0
Fork 0

omap: nand remove unnecessary condition

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Michael Grzeschik 2010-08-17 10:52:26 +02:00 committed by Sascha Hauer
parent 7911dbcaf6
commit 0d8d93d7c6
1 changed files with 1 additions and 2 deletions

View File

@ -548,10 +548,9 @@ static int gpmc_nand_probe(struct device_d *pdev)
goto out_release_mem;
}
if (pdata->plat_options & NAND_HWECC_ENABLE)
if (pdata->plat_options & NAND_HWECC_ENABLE) {
nand->ecc.layout = layout;
if (pdata->plat_options & NAND_HWECC_ENABLE) {
/* Program how many columns we expect+
* enable the cs we want and enable the engine
*/