aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorNĂ­colas F. R. A. Prado <[email protected]>2024-01-24 20:31:43 +0000
committerViresh Kumar <[email protected]>2024-01-29 05:04:17 +0000
commiteaffb10b51bf74415c9252fd8fb4dd77122501ee (patch)
tree0ce5456e0c1634b3d4aed6f066ba873ce5ec7dae /tools/perf/scripts/python/gecko.py
parentDocumentation: power: Use kcalloc() instead of kzalloc() (diff)
downloadkernel-eaffb10b51bf74415c9252fd8fb4dd77122501ee.tar.gz
kernel-eaffb10b51bf74415c9252fd8fb4dd77122501ee.zip
cpufreq: mediatek-hw: Don't error out if supply is not found
devm_regulator_get_optional() returns -ENODEV if no supply can be found. By introducing its usage, commit 788715b5f21c ("cpufreq: mediatek-hw: Wait for CPU supplies before probing") caused the driver to fail probe if no supply was present in any of the CPU DT nodes. Use devm_regulator_get() instead since the CPUs do require supplies even if not described in the DT. It will gracefully return a dummy regulator if none is found in the DT node, allowing probe to succeed. Fixes: 788715b5f21c ("cpufreq: mediatek-hw: Wait for CPU supplies before probing") Reported-by: kernelci.org bot <[email protected]> Closes: https://linux.kernelci.org/test/case/id/65b0b169710edea22852a3fa/ Signed-off-by: NĂ­colas F. R. A. Prado <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions