net: qcom/emac: claim the irq only when the device is opened
authorTimur Tabi <timur@codeaurora.org>
Fri, 20 Jan 2017 23:21:04 +0000 (17:21 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jan 2017 18:03:28 +0000 (13:03 -0500)
commit4404323c6ac256c2a11d86fda65fbdb7d198ff8c
treecfe7c2cd98fd0cfc4212b631577216c9700fb045
parent41c1093f2e1a33f4bf38848b4b1526903c5052bb
net: qcom/emac: claim the irq only when the device is opened

During reset, functions emac_mac_down() and emac_mac_up() are called,
so we don't want to free and claim the IRQ unnecessarily.  Move those
operations to open/close.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Reviewed-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-mac.c
drivers/net/ethernet/qualcomm/emac/emac.c
drivers/net/ethernet/qualcomm/emac/emac.h