ata: pata_imx: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 25 Jan 2014 21:46:23 +0000 (19:46 -0200)
committerTejun Heo <tj@kernel.org>
Wed, 29 Jan 2014 18:15:11 +0000 (13:15 -0500)
commit0475c947d221f9250bbdf430b2604f828b643ee0
treebf215ae64752ed8a463dd280134c8567c7c5b881
parent0e47c969c65e213421450c31043353ebe3c67e0c
ata: pata_imx: 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: Tejun Heo <tj@kernel.org>
drivers/ata/pata_imx.c