提交 e9a5190a 编写于 作者: J Johan Hovold 提交者: Kevin Hilman

OMAP2+: PM: clean up error messages: replace printk with pr_err.

Also, clean up error messages by adding missing whitespace, fixing
capitalisations, removing double newlines, and reducing verbosity.
Signed-off-by: NJohan Hovold <jhovold@gmail.com>
[khilman@ti.com: minor changelog/subject edits]
Signed-off-by: NKevin Hilman <khilman@ti.com>
上级 1e2d2df3
...@@ -137,8 +137,8 @@ int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state) ...@@ -137,8 +137,8 @@ int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state)
ret = pwrdm_set_next_pwrst(pwrdm, state); ret = pwrdm_set_next_pwrst(pwrdm, state);
if (ret) { if (ret) {
printk(KERN_ERR "Unable to set state of powerdomain: %s\n", pr_err("%s: unable to set state of powerdomain: %s\n",
pwrdm->name); __func__, pwrdm->name);
goto err; goto err;
} }
...@@ -179,21 +179,20 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, ...@@ -179,21 +179,20 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
unsigned long freq, bootup_volt; unsigned long freq, bootup_volt;
if (!vdd_name || !clk_name || !dev) { if (!vdd_name || !clk_name || !dev) {
printk(KERN_ERR "%s: Invalid parameters!\n", __func__); pr_err("%s: invalid parameters\n", __func__);
goto exit; goto exit;
} }
voltdm = omap_voltage_domain_lookup(vdd_name); voltdm = omap_voltage_domain_lookup(vdd_name);
if (IS_ERR(voltdm)) { if (IS_ERR(voltdm)) {
printk(KERN_ERR "%s: Unable to get vdd pointer for vdd_%s\n", pr_err("%s: unable to get vdd pointer for vdd_%s\n",
__func__, vdd_name); __func__, vdd_name);
goto exit; goto exit;
} }
clk = clk_get(NULL, clk_name); clk = clk_get(NULL, clk_name);
if (IS_ERR(clk)) { if (IS_ERR(clk)) {
printk(KERN_ERR "%s: unable to get clk %s\n", pr_err("%s: unable to get clk %s\n", __func__, clk_name);
__func__, clk_name);
goto exit; goto exit;
} }
...@@ -202,14 +201,14 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, ...@@ -202,14 +201,14 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
opp = opp_find_freq_ceil(dev, &freq); opp = opp_find_freq_ceil(dev, &freq);
if (IS_ERR(opp)) { if (IS_ERR(opp)) {
printk(KERN_ERR "%s: unable to find boot up OPP for vdd_%s\n", pr_err("%s: unable to find boot up OPP for vdd_%s\n",
__func__, vdd_name); __func__, vdd_name);
goto exit; goto exit;
} }
bootup_volt = opp_get_voltage(opp); bootup_volt = opp_get_voltage(opp);
if (!bootup_volt) { if (!bootup_volt) {
printk(KERN_ERR "%s: unable to find voltage corresponding" pr_err("%s: unable to find voltage corresponding "
"to the bootup OPP for vdd_%s\n", __func__, vdd_name); "to the bootup OPP for vdd_%s\n", __func__, vdd_name);
goto exit; goto exit;
} }
...@@ -218,8 +217,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name, ...@@ -218,8 +217,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
return 0; return 0;
exit: exit:
printk(KERN_ERR "%s: Unable to set vdd_%s to its init voltage\n\n", pr_err("%s: unable to set vdd_%s\n", __func__, vdd_name);
__func__, vdd_name);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册