net: phy: micrel: use devm_clk_get_optional_enabled for
From: Heiko Stuebner <heiko.stuebner@...> Date: Thu, 30 Nov 2023 10:11:14 +0100
Commit-Message
While the external clock input will most likely be enabled, it's not guaranteed and clk_get_rate in some suppliers will even just return valid results when the clock is running. So use devm_clk_get_optional_enabled to retrieve and enable the clock in one go. Signed-off-by: Heiko Stuebner <heiko.stuebner@...>
Patch-Comment
drivers/net/phy/micrel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Statistics
- 1 lines added
- 1 lines removed