net: allwinner: emac: Add missing free_irq
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 10 Dec 2013 18:40:43 +0000 (19:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Dec 2013 23:01:10 +0000 (18:01 -0500)
commite9c56f8d2f851fb6d6ce6794c0f5463b862a878e
tree77106dde5b247fbc263c8dbf887f566879a9771e
parent673498b8ed4c4d4b7221c5309d891c5eac2b7528
net: allwinner: emac: Add missing free_irq

The sun4i-emac driver uses devm_request_irq at .ndo_open time, but relies on
the managed device mechanism to actually free it. This causes an issue whenever
someone wants to restart the interface, the interrupt still being held, and not
yet released.

Fall back to using the regular request_irq at .ndo_open time, and introduce a
free_irq during .ndo_stop.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: stable@vger.kernel.org # 3.11+
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/allwinner/sun4i-emac.c