]> 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)
commit75403c7c3766b258776760e0793b77e2678312b6
tree51343b9c26d87d9f9b5fb89474d0f365bedaf63f
parent4ffe361110db8a6d085378e6004097a83b423c75
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