stmmac: Move the mdio_register/_unregister in probe/remove
authorFrancesco Virlinzi <francesco.virlinzi@st.com>
Wed, 18 Apr 2012 19:48:20 +0000 (19:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Apr 2012 00:08:49 +0000 (20:08 -0400)
commit4bfcbd7abce2d9b56f10d455ffeab00584cd8045
tree2817a3a5f038b6af9e373c8a8dfe2c0ad68aa997
parent3256251f9850d00c8e4a4fd82440092bb0f1fd7d
stmmac: Move the mdio_register/_unregister in probe/remove

This patch moves the mdio_register/_unregister in probe/remove
functions and this also is required when hibernation on disk
is done.

Signed-off-by: Francesco Virlinzi <francesco.virlinzi@st,com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st,com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c