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>
Showing
- drivers/net/ethernet/qualcomm/emac/emac-mac.c 0 additions, 13 deletionsdrivers/net/ethernet/qualcomm/emac/emac-mac.c
- drivers/net/ethernet/qualcomm/emac/emac.c 11 additions, 0 deletionsdrivers/net/ethernet/qualcomm/emac/emac.c
- drivers/net/ethernet/qualcomm/emac/emac.h 0 additions, 1 deletiondrivers/net/ethernet/qualcomm/emac/emac.h
Loading
Please register or sign in to comment