stmmac: fix open funct when exit on error
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Sun, 10 Apr 2011 23:16:45 +0000 (23:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2011 19:55:47 +0000 (12:55 -0700)
commitf66ffe285939559d2a6f630a36f676d7c056b99d
tree3b6ee5cdd3b679b4a1d01d3b30d3cf208554183e
parentbded18c2dd09eee870f4446652dbce493a6dece1
stmmac: fix open funct when exit on error

This patch reviews the open function and fixes some
errors when exit with an error state.
It also moves the request_irq after core is initialized
when interrupts are properly masked.

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Hacked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/stmmac_main.c