mtd: maps: physmap: Check mtd_device_{parse_register, unregister}() ret code
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 19 Oct 2018 07:49:00 +0000 (09:49 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 5 Nov 2018 21:24:05 +0000 (22:24 +0100)
commit1e4f42084910067b2d37002afb6d1d1413552e1c
tree8f8582ddc239b6b4a4705fe729aeaffecc6b24d3
parent51b436a2420e32258f78f0d7a53c8ad1c8569d3b
mtd: maps: physmap: Check mtd_device_{parse_register, unregister}() ret code

mtd_device_parse_register() and mtd_device_unregister() can fail,
check their return code and propagate the error to the upper layer
if needed.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mtd/maps/physmap.c