Gustavo A. R. Silva 238709b220 mtd: nand: mtk: fix error return code in mtk_ecc_probe()
platform_get_irq() returns an error code, but the mtk_ecc driver
ignores it and always returns -EINVAL. This is not correct and,
prevents -EPROBE_DEFER from being propagated properly.

Print and propagate the return value of platform_get_irq on failure.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
2017-08-23 16:49:23 +02:00
..
2017-07-03 20:27:48 -07:00
2017-07-07 17:57:59 -07:00
2017-04-20 12:09:55 -06:00
2016-04-18 11:23:24 +02:00
2016-07-09 18:48:54 -07:00