cpufreq: cpu0: print relevant error when we defer probe
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 28 Aug 2014 05:52:26 +0000 (11:22 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Sep 2014 23:44:40 +0000 (01:44 +0200)
commit48a8624b3abe39bd66490e3ab692a74a73b582eb
treeb3225525d63067a36fa1adcd9f5938da8a2e48a0
parented4b053cb864f29f57cf5a4c3f3c85cda22edaf1
cpufreq: cpu0: print relevant error when we defer probe

Currently, we defer probe if regulator_get() returned -EPROBE_DEFER, i.e.
regulator isn't registered yet. We do a dev_err() in this case. Sending a
message to the log on probe defer just duplicates what the driver core is
already doing. Convert it to dev_dbg() instead.

We should defer in case of clk_get() as well.

Current code already does it, but it wasn't intentional probably. Its just that
we are returning the right error with wrong print message.

Fix print message to convey right error.

Tested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-cpu0.c