cpufreq: mediatek: Handle sram regulator probe deferral
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 13 Jul 2022 11:15:36 +0000 (13:15 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 13 Jul 2022 11:21:32 +0000 (16:51 +0530)
commitd2394860b45c3c1484e4b0a5d09909a1e3f6569e
tree926ae0e2a1a6bc3208b0bfe1533c7b5bd822db80
parentbe4b61ec45b3efe5e9077525fc92d544305eb2a6
cpufreq: mediatek: Handle sram regulator probe deferral

If the regulator_get_optional() call for the SRAM regulator returns
a probe deferral, we must bail out and retry probing later: failing
to do this will produce unstabilities on platforms requiring the
handling for this regulator.

Fixes: ffa7bdf7f344 ("cpufreq: mediatek: Make sram regulator optional")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/mediatek-cpufreq.c