summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/orion_nand.c
diff options
context:
space:
mode:
authorBrian Norris2016-11-30 03:28:30 +0100
committerBrian Norris2016-11-30 03:28:30 +0100
commit0989b0909c1f86b8a4a76c0bee101cd017c4e259 (patch)
treee12d6ba197340410a94b7a2c476d5549d4f6b90e /drivers/mtd/nand/orion_nand.c
parentmtd: mtdswap: fix spelling mistake "erassure" -> "erasure" (diff)
parentmtd: nand: tango: Use nand_to_mtd() instead of directly accessing chip->mtd (diff)
downloadkernel-qcow2-linux-0989b0909c1f86b8a4a76c0bee101cd017c4e259.tar.gz
kernel-qcow2-linux-0989b0909c1f86b8a4a76c0bee101cd017c4e259.tar.xz
kernel-qcow2-linux-0989b0909c1f86b8a4a76c0bee101cd017c4e259.zip
Merge tag 'nand/for-4.10' of github.com:linux-nand/linux
From Boris Brezillon: """ This pull request contains the following notable changes: - new tango NAND controller driver - new ox820 NAND controller driver - addition of a new full-ID entry in the nand_ids table - rework of the s3c240 driver to support DT - extension of the nand_sdr_timings to expose tCCS, tPROG and tR - addition of a new flag to ask the core to wait for tCCS when sending a RNDIN/RNDOUT command - addition of a new flag to ask the core to let the controller driver send the READ/PROGPAGE command This pull request also contains minor fixes/cleanup/cosmetic changes: - properly support 512 ECC step size in the sunxi driver - improve the error messages in the pxa probe path - fix module autoload in the omap2 driver - cleanup of several nand drivers to return nand_scan{_tail}() error code instead of returning -EIO - various cleanups in the denali driver - cleanups in the ooblayout handling (MTD core) - fix an error check in nandsim """
Diffstat (limited to 'drivers/mtd/nand/orion_nand.c')
-rw-r--r--drivers/mtd/nand/orion_nand.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c
index 40a7c4a2cf0d..4a91c5d000be 100644
--- a/drivers/mtd/nand/orion_nand.c
+++ b/drivers/mtd/nand/orion_nand.c
@@ -155,10 +155,9 @@ static int __init orion_nand_probe(struct platform_device *pdev)
clk_put(clk);
}
- if (nand_scan(mtd, 1)) {
- ret = -ENXIO;
+ ret = nand_scan(mtd, 1);
+ if (ret)
goto no_dev;
- }
mtd->name = "orion_nand";
ret = mtd_device_register(mtd, board->parts, board->nr_parts);