]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: micrel: move the PHY timestamping check
authorMichael Walle <michael@walle.cc>
Wed, 27 Apr 2022 21:44:05 +0000 (23:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Apr 2022 23:37:53 +0000 (16:37 -0700)
commit994a26d03c4f85e9ac8b2c027bbb470cf1920633
tree652c8e17645bbfe0e7dfdb77059c60d4b00c7b8f
parentc4ba86808c69a9b0bbcbdf88277871cc93756ea5
net: phy: micrel: move the PHY timestamping check

Both lan8814_ptp_init() and lan8814_ptp_probe_once() are only used if
PTP and PHY timestamping is enabed. Up until now the probe function just
returns early, if they are not needed. But we need the
phy_package_init_once() functionality for the coma mode GPIO setup. Move
the check into the functions itself.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/micrel.c