clocksource/drivers/timer-ti-dm: Get clock in probe with devm_clk_get()
authorTony Lindgren <tony@atomide.com>
Mon, 15 Aug 2022 13:12:50 +0000 (16:12 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 20 Sep 2022 08:49:46 +0000 (10:49 +0200)
commit789d4b1070261fa98b06384d2067f23c080dc9f1
treedd7126ea73a32dcae62f5287c6f5a62d113e0cd2
parent664ad59da11687ef9b518fc2519af6a71a1db9f1
clocksource/drivers/timer-ti-dm: Get clock in probe with devm_clk_get()

We can simplify the code a bit by getting the clock in probe, and using
devm_clk_get(). This will also make further changes easier as the clock
is available in probe instead of prepare.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Link: https://lore.kernel.org/r/20220815131250.34603-10-tony@atomide.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-ti-dm.c