Skip to content

Commit

Permalink
cpufreq: cpufreq-dt: adjust message related to regulators
Browse files Browse the repository at this point in the history
The cpufreq-dt driver tries to get a regulator for each CPU. This
regulator is optional, but when not present, a scary message "failed
to get cpuX regulator" is displayed. To solve this, we reduce the
severity of the message from dev_warn() to dev_dbg() and we reword the
message to not be as scary.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Thomas Petazzoni authored and Rafael J. Wysocki committed Oct 20, 2014
1 parent 34e5a52 commit a00de1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/cpufreq/cpufreq-dt.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ static int allocate_resources(int cpu, struct device **cdev,
goto try_again;
}

dev_warn(cpu_dev, "failed to get cpu%d regulator: %ld\n",
cpu, PTR_ERR(cpu_reg));
dev_dbg(cpu_dev, "no regulator for cpu%d: %ld\n",
cpu, PTR_ERR(cpu_reg));
}

cpu_clk = clk_get(cpu_dev, NULL);
Expand Down

0 comments on commit a00de1a

Please sign in to comment.