mtd: nand: vf610: check mtd_device_register() return code
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 9 Feb 2018 22:28:36 +0000 (01:28 +0300)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 12 Feb 2018 22:36:05 +0000 (23:36 +0100)
commit1b8c90985f59ccd8a1adb723b58b42628b36e668
tree6016752703403f6ebef2f9eda58af162ccf84eea
parent196644fd09ab7bf47040c0bdd1b48fc3c2bc08a6
mtd: nand: vf610: check mtd_device_register() return code

vf610_nfc_probe() misses error handling of mtd_device_register().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/vf610_nfc.c