fec: Fix the order for enabling/disabling the clocks
authorFabio Estevam <fabio.estevam@freescale.com>
Sun, 21 Jul 2013 16:25:00 +0000 (13:25 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jul 2013 23:50:31 +0000 (16:50 -0700)
commitd265cf48ea0a5cf6d201abb0bfab6674019126d4
tree1cac3a245cdd6262f24f9074b79854c1b7207120
parent9514fe7a2352e35ff571467afba24ab904a1befe
fec: Fix the order for enabling/disabling the clocks

On fec_probe the clocks are enabled in the following order:

clk_ahb -> clk_ipg -> clk_enet_out -> clk_ptp

, so in the error and remove paths we should disabled them in the opposite
order.

Also fix the order in the suspend/resume functions.

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