net: fec: free resource after phy probe failed
authorNimrod Andy <B38611@freescale.com>
Tue, 23 Sep 2014 07:40:58 +0000 (15:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Sep 2014 20:05:21 +0000 (16:05 -0400)
commite3c9614f3a5869e93c78b1630ab72572aa4cd2a3
tree1314ac934659901a1665d3526b661c0c503c7891
parentb64bf4b7dded4febb8e1f319eb6b9d419cbbd856
net: fec: free resource after phy probe failed

Free memory and disable all related clocks when there has no phy
connection or phy probe failed.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c