mtd: nand: vf610: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@nxp.com>
Tue, 18 Jul 2017 00:54:07 +0000 (21:54 -0300)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 23 Aug 2017 14:49:14 +0000 (16:49 +0200)
commit03fba86b63b95cf4377dd6cf8eaca9b225ed4a2d
tree49d4234fc8c58bd7f615abfcd65899ebac541a01
parent5158bd5597e4c0939db3ecefbcbf492c425e611c
mtd: nand: vf610: Check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so we should better check its return value
and propagate it in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/vf610_nfc.c