stmmac: fix platform driver unregistering
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Fri, 14 Dec 2012 01:02:51 +0000 (01:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2012 18:14:07 +0000 (13:14 -0500)
commit493682b8b8a9bf130a544d983c63f1b35df688b9
treefab5919bd4a53bd8f341e7fbc71ddc3f2ca5091b
parent4a0ae7b0a9e55db9b85f8abda623f145311eb951
stmmac: fix platform driver unregistering

This patch fixes platform device drivers unregistering and adds proper error
handing on module loading.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c