summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/cpufreq/imx7ulp-cpufreq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/cpufreq/imx7ulp-cpufreq.c b/drivers/cpufreq/imx7ulp-cpufreq.c
index 43a9b9520ae9..04b0a27c49bf 100644
--- a/drivers/cpufreq/imx7ulp-cpufreq.c
+++ b/drivers/cpufreq/imx7ulp-cpufreq.c
@@ -170,9 +170,10 @@ static int imx7ulp_cpufreq_probe(struct platform_device *pdev)
arm_reg = regulator_get(cpu_dev, "arm");
if (IS_ERR(arm_reg)) {
- dev_err(cpu_dev, "failed to get regulator\n");
- ret = -ENOENT;
- goto put_reg;
+ if (PTR_ERR(arm_reg) != -EPROBE_DEFER)
+ dev_err(cpu_dev, "failed to get regulator\n");
+ ret = PTR_ERR(arm_reg);
+ goto put_clk;
}
ret = dev_pm_opp_of_add_table(cpu_dev);