1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-15 20:35:40 +03:00

linux/3.3: fix compiler warnings in the plat_nand driver

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31473 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-04-25 12:57:29 +00:00
parent 5d61cfe7e3
commit 0e8ddda2ee

View File

@ -21,13 +21,13 @@
/* Scan to find existence of the device */ /* Scan to find existence of the device */
- if (nand_scan(&data->mtd, pdata->chip.nr_chips)) { - if (nand_scan(&data->mtd, pdata->chip.nr_chips)) {
+ if (nand_scan_ident(&data->mtd, pdata->chip.nr_chips, NULL)) { + if (nand_scan_ident(&data->mtd, pdata->chip.nr_chips, NULL)) {
+ res = -ENXIO; + err = -ENXIO;
+ goto out; + goto out;
+ } + }
+ +
+ if (pdata->chip.chip_fixup) { + if (pdata->chip.chip_fixup) {
+ res = pdata->chip.chip_fixup(&data->mtd); + err = pdata->chip.chip_fixup(&data->mtd);
+ if (res) + if (err)
+ goto out; + goto out;
+ } + }
+ +