9
0
Fork 0

mtd nand i.MX: fix compilation for unsupported SoC

Add a default case when all if(nfc_is_*) else if()
return false to prevent a compiler warning.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2012-10-26 08:34:10 +02:00
parent f2513cb8b1
commit 0b15ebf165
1 changed files with 3 additions and 0 deletions

View File

@ -1175,6 +1175,9 @@ static int __init imxnd_probe(struct device_d *dev)
oob_smallpage = &nandv2_hw_eccoob_smallpage;
oob_largepage = &nandv2_hw_eccoob_largepage;
oob_4kpage = &nandv2_hw_eccoob_4k;
} else {
err = -EINVAL;
goto escan;
}
host->dev = dev;