net: phy: check for implementation of both callbacks in phy_drv_supports_irq
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 12 Nov 2018 20:16:06 +0000 (21:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Nov 2018 03:31:06 +0000 (19:31 -0800)
commita21ff3c83b1a7e110bae208221ef817251ef564c
tree09b45383d6f756e9ad84cd3270767651551a266f
parent6551971ea8fef40d4f047621b193e9c2e7f529e8
net: phy: check for implementation of both callbacks in phy_drv_supports_irq

Now that the icplus driver has been fixed all PHY drivers supporting
interrupts have both callbacks (config_intr and ack_interrupt)
implemented - as it should be. Therefore phy_drv_supports_irq()
can be changed now to check for both callbacks being implemented.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c