fec: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@freescale.com>
Sun, 21 Jul 2013 16:25:02 +0000 (13:25 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jul 2013 23:50:31 +0000 (16:50 -0700)
commit13a097bd35a15bbec00479adfb2ef5360e8eabef
tree94ee9e5d07875faf0b87c8f1456ee1ebfc7b6af0
parent79820e725f3ac5db694c49c75088d79fde78b671
fec: 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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c