]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: nand: pxa3xx_nand: write exactly one message on probe failure
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 19 Sep 2016 09:21:18 +0000 (11:21 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 7 Nov 2016 13:48:38 +0000 (14:48 +0100)
commit8bd8fbd8bccf6e32198000792ee8d1e9189f441f
treee1ed84fa34c2d3d92786699706540a06afa1078a
parent6ea40a3ba93e1b14ffb349e276f9dfefc4334b99
mtd: nand: pxa3xx_nand: write exactly one message on probe failure

For some error paths alloc_nand_resource() emitted an error message, for
others it didn't. Make it consistently print a message including the
error code where it's not constant and drop the hardly helpful
additional message printed by the caller of alloc_nand_resource.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/pxa3xx_nand.c