]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: onenand: samsung: return an error if 'mtd_device_parse_register()' fails
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 14 Dec 2017 06:03:50 +0000 (07:03 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 18 Dec 2017 16:37:51 +0000 (17:37 +0100)
commit4a00906641fa72189916f7d8eaf678222945cb15
treec7702ac15f9a7c5b10152e2b3763b54326417f80
parentc49ecc6f5cdd532fd8cc78ac6ac647c533b6504b
mtd: onenand: samsung: return an error if 'mtd_device_parse_register()' fails

If 'mtd_device_parse_register()' fails, we still return 0 which mean
success.
Return the error code instead, as done in all the other error handling
paths.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/onenand/samsung.c