diff options
author | Cristian Ciocaltea <cristian.ciocaltea@collabora.com> | 2024-08-13 00:15:09 +0300 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2024-08-15 12:29:20 +0200 |
commit | d2a80cb57a017c97d40c35f6b0cc7d103065f0cd (patch) | |
tree | bdab27a04a6ff200bef68eb72733847909f31c71 /tools/perf/scripts/python/libxed.py | |
parent | 1b8f576c69588ddee9e093d322449bb069e51f6c (diff) |
drm/rockchip: dw_hdmi: Simplify clock handling
Make use of devm_clk_get_optional_enabled() to replace devm_clk_get()
and clk_prepare_enable() for ref_clk and drop the now unnecessary calls
to clk_disable_unprepare().
Additionally, use devm_clk_get_optional() helper for grf_clk to replace
the open coding call to devm_clk_get() followed by the -ENOENT test.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240813-dw-hdmi-rockchip-cleanup-v1-2-b3e73b5f4fd6@collabora.com
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions