]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba9ba230d83caa316b37672f660a073137f5601a
tree09b45383d6f756e9ad84cd3270767651551a266f
parentdfdbbc9b78c8bceecc28cd2999f6f3a6c70e8859
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