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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:49:00 +0000 (07:49 -0800)
commit028d3234cb84a11c6c183bbffcecc726d45c8cfd
treede756bc9b21c45c97020cabb65ceb991b851818b
parentf0d64a5e19ffc678c156454bab9ae0a46771159f
net: allwinner: emac: Add missing free_irq

commit e9c56f8d2f851fb6d6ce6794c0f5463b862a878e upstream.

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/allwinner/sun4i-emac.c