can: flexcan: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 22 Jul 2013 15:41:40 +0000 (12:41 -0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 1 Aug 2013 10:36:20 +0000 (12:36 +0200)
commitaa10181bdac99a623517f0f2bfa14cd98c749246
tree23868dc0c629a17f8685ccd40815ffb8f4413742
parent933e4af4c590c63509ffadeb77fcd1d329ac9155
can: flexcan: Check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so let's check its return value and propagate it
in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c