]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite32fd4b1e10029f567765e9e51ad936b5a4f254d
tree3b6ee5cdd3b679b4a1d01d3b30d3cf208554183e
parent473b008ca105ba42e89e9ab3eafdae6da5794a7a
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