clocksource/drivers/timer-ti-dm: Use runtime PM directly and check errors
authorTony Lindgren <tony@atomide.com>
Mon, 15 Aug 2022 13:12:47 +0000 (16:12 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 20 Sep 2022 08:49:46 +0000 (10:49 +0200)
commitbd351f1aee21ca667b39658550b5f3c61e8bb77f
tree8ba76146fd9ee4852018925a16ea94c04124c348
parent1d513f439d7930363adce4588030af7c8fa71cc9
clocksource/drivers/timer-ti-dm: Use runtime PM directly and check errors

Use pm_runtime_resume_and_get() and check for a possible error returned.

We want to do this as omap_dm_timer_enable() and omap_dm_timer_disable()
are exposed to the pwm and remoteproc drivers, and in the following patch
we turn struct omap_dm_timer into a cookie used by the exposed functions
only.

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