summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorbui duc phuc <phucduc.bui@gmail.com>2026-09-18 20:39:01 +0700
committerMark Brown <broonie@kernel.org>2026-09-28 17:36:54 +0100
commit6f4edfdce0099dc0c346c78c85f58a23d4ee646e (patch)
treeec4625b315aa845dfc31a7cfed1ee87ede34d3da /tools/perf/scripts/python
parent4a0ab266cb1594f8c6aef3c79726476ad99618c5 (diff)
ASoC: mediatek: mt8192: switch to devm_clk_get_optional()
Switch from devm_clk_get() to devm_clk_get_optional() when requesting clocks, as optional clocks automatically return NULL when not present instead of requiring manual check and NULL assignment. Additionally, handle clock errors properly using dev_err_probe() to propagate error codes (such as -EPROBE_DEFER) on failure instead of just printing a warning and continuing with NULL pointers. Fixes: 125ab5d588b0 ("ASoC: mediatek: mt8192: add platform driver") Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://patch.msgid.link/20260918133912.133799-6-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions