Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: mediatek: change to regulator_get_optional

For new mediatek chip mt8183,
cci and little cluster share the same buck,
so need to modify the attribute of regulator from exclusive to optional

Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

authored by

Andrew-sh.Cheng and committed by
Viresh Kumar
dce0bb84 75c000c4

+1 -1
+1 -1
drivers/cpufreq/mediatek-cpufreq.c
··· 338 338 goto out_free_resources; 339 339 } 340 340 341 - proc_reg = regulator_get_exclusive(cpu_dev, "proc"); 341 + proc_reg = regulator_get_optional(cpu_dev, "proc"); 342 342 if (IS_ERR(proc_reg)) { 343 343 if (PTR_ERR(proc_reg) == -EPROBE_DEFER) 344 344 pr_warn("proc regulator for cpu%d not ready, retry.\n",