]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: smsc: simplify config_init callback
authorMarco Felsch <m.felsch@pengutronix.de>
Wed, 9 Sep 2020 13:44:58 +0000 (15:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 21:15:02 +0000 (14:15 -0700)
commit10f0ce34acee1beea1bd678900a5e3a0fd76bad3
tree51343b9c26d87d9f9b5fb89474d0f365bedaf63f
parentcea2fe2024fb4d1fe4ef32b0e987981331cf88ac
net: phy: smsc: simplify config_init callback

Exit the driver specific config_init hook early if energy detection is
disabled. We can do this because we don't need to clear the interrupt
status here. Clearing the status should be removed anyway since this is
handled by the phy_enable_interrupts().

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/smsc.c