Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0598344d authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Boris Brezillon
Browse files

mtd: onenand: samsung: Propagate the error returned by 'onenand_scan()'



Propagate the error code returned by 'onenand_scan()' instead of a
hard-coded -EFAULT.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent ad99be47
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -922,8 +922,9 @@ static int s3c_onenand_probe(struct platform_device *pdev)
		}
	}

	if (onenand_scan(mtd, 1))
		return -EFAULT;
	err = onenand_scan(mtd, 1);
	if (err)
		return err;

	if (onenand->type != TYPE_S5PC110) {
		/* S3C doesn't handle subpage write */