net: phy: improve phy_init_hw
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 19 Jan 2019 09:43:07 +0000 (10:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jan 2019 22:45:41 +0000 (14:45 -0800)
commita5996989d5911f416f8a31cf2b3d415911febbf6
tree44558c18265e7fe8f6633ca619f80c93d65dbbb7
parent21e194425abd65b525fa38cbddd08ef169d5269d
net: phy: improve phy_init_hw

Currently the soft reset (if defined) is done only if the driver also
implements the config_init callback. I think this dependency is a
mistake, so let's remove it.

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