cpufreq: mediatek: Make sram regulator optional
authorJia-Wei Chang <jia-wei.chang@mediatek.com>
Fri, 22 Apr 2022 07:52:33 +0000 (15:52 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 26 Apr 2022 06:39:10 +0000 (12:09 +0530)
commitffa7bdf7f344477ad817504c87d8d2db5316a8b6
treef05acdd1c10ce275f17da2c9105ec17b97a25892
parentbffcd33313dcfaf6357753c25c8ef8b4c628e46b
cpufreq: mediatek: Make sram regulator optional

For some MediaTek SoCs, like MT8186, it's possible that the sram regulator
is shared between CPU and CCI.
We hope regulator framework can return error for error handling rather
than a dummy handler from regulator_get api.
Therefore, we choose to use regulator_get_optional.

Signed-off-by: Jia-Wei Chang <jia-wei.chang@mediatek.com>
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/mediatek-cpufreq.c