fec: Disable the PHY regulator on error and removal
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 27 May 2013 03:48:31 +0000 (03:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 May 2013 05:29:54 +0000 (22:29 -0700)
commitf6a4d607b3fdfaf305f3e78837cb8969d62c249a
tree6f708a993241c6a63cbaeeef0da427e10d4ef938
parent7a2bbd8d8e36c4fae7610bb1be96c2ba5ff7553a
fec: Disable the PHY regulator on error and removal

In the case of error during probe, disable the PHY regulator.

Do the same in fec_drv_remove().

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