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)
commit436e380064ea27924f65b9af47876032c4162cf2
tree51343b9c26d87d9f9b5fb89474d0f365bedaf63f
parent7365494550f6e96b8e444201bf5fdaec40e7e007
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