]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 9 Nov 2018 17:16:28 +0000 (18:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 17:36:46 +0000 (09:36 -0800)
commit26d6f8b2073fd669e62f5092c917cff43b6da797
treedef62a426e054c6bf2daa617f5eae0572d01e7b0
parent360390eba74feacb7d4072556a58e2dc39aafa59
net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt

Flag PHY_HAS_INTERRUPT is used only here for this small check. I think
using interrupts isn't possible if a driver defines neither
config_intr nor ack_interrupts callback. So we can replace checking
flag PHY_HAS_INTERRUPT with checking for these callbacks.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c