* [PATCH 1/2 RESEND] OMAP2+: pm: fix typos
[not found] <87r543rkdk.fsf@ti.com>
@ 2011-08-30 16:48 ` Johan Hovold
2011-08-30 16:48 ` [PATCH 2/2 RESEND] OMAP2+: pm: clean up error messages Johan Hovold
2011-08-30 21:14 ` [PATCH 1/2 RESEND] OMAP2+: pm: fix typos Kevin Hilman
0 siblings, 2 replies; 4+ messages in thread
From: Johan Hovold @ 2011-08-30 16:48 UTC (permalink / raw)
To: linux-arm-kernel
Fix typos in comment and error message.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
---
arch/arm/mach-omap2/pm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index 3feb359..fd77cf4 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -163,11 +163,11 @@ err:
}
/*
- * This API is to be called during init to put the various voltage
+ * This API is to be called during init to set the various voltage
* domains to the voltage as per the opp table. Typically we boot up
* at the nominal voltage. So this function finds out the rate of
* the clock associated with the voltage domain, finds out the correct
- * opp entry and puts the voltage domain to the voltage specifies
+ * opp entry and sets the voltage domain to the voltage specified
* in the opp entry
*/
static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
@@ -218,7 +218,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
return 0;
exit:
- printk(KERN_ERR "%s: Unable to put vdd_%s to its init voltage\n\n",
+ printk(KERN_ERR "%s: Unable to set vdd_%s to its init voltage\n\n",
__func__, vdd_name);
return -EINVAL;
}
--
1.7.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2 RESEND] OMAP2+: pm: clean up error messages
2011-08-30 16:48 ` [PATCH 1/2 RESEND] OMAP2+: pm: fix typos Johan Hovold
@ 2011-08-30 16:48 ` Johan Hovold
2011-08-30 21:15 ` Kevin Hilman
2011-08-30 21:14 ` [PATCH 1/2 RESEND] OMAP2+: pm: fix typos Kevin Hilman
1 sibling, 1 reply; 4+ messages in thread
From: Johan Hovold @ 2011-08-30 16:48 UTC (permalink / raw)
To: linux-arm-kernel
Replace all printks with pr_err.
Clean up error messages by adding missing whitespace, fixing
capitalisations, removing double newlines, and reducing verbosity.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
---
arch/arm/mach-omap2/pm.c | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index fd77cf4..3837818 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -137,8 +137,8 @@ int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state)
ret = pwrdm_set_next_pwrst(pwrdm, state);
if (ret) {
- printk(KERN_ERR "Unable to set state of powerdomain: %s\n",
- pwrdm->name);
+ pr_err("%s: unable to set state of powerdomain: %s\n",
+ __func__, pwrdm->name);
goto err;
}
@@ -179,21 +179,20 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
unsigned long freq, bootup_volt;
if (!vdd_name || !clk_name || !dev) {
- printk(KERN_ERR "%s: Invalid parameters!\n", __func__);
+ pr_err("%s: invalid parameters\n", __func__);
goto exit;
}
voltdm = omap_voltage_domain_lookup(vdd_name);
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);
goto exit;
}
clk = clk_get(NULL, clk_name);
if (IS_ERR(clk)) {
- printk(KERN_ERR "%s: unable to get clk %s\n",
- __func__, clk_name);
+ pr_err("%s: unable to get clk %s\n", __func__, clk_name);
goto exit;
}
@@ -202,14 +201,14 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
opp = opp_find_freq_ceil(dev, &freq);
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);
goto exit;
}
bootup_volt = opp_get_voltage(opp);
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);
goto exit;
}
@@ -218,8 +217,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
return 0;
exit:
- printk(KERN_ERR "%s: Unable to set vdd_%s to its init voltage\n\n",
- __func__, vdd_name);
+ pr_err("%s: unable to set vdd_%s\n", __func__, vdd_name);
return -EINVAL;
}
--
1.7.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 1/2 RESEND] OMAP2+: pm: fix typos
2011-08-30 16:48 ` [PATCH 1/2 RESEND] OMAP2+: pm: fix typos Johan Hovold
2011-08-30 16:48 ` [PATCH 2/2 RESEND] OMAP2+: pm: clean up error messages Johan Hovold
@ 2011-08-30 21:14 ` Kevin Hilman
1 sibling, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2011-08-30 21:14 UTC (permalink / raw)
To: linux-arm-kernel
Johan Hovold <jhovold@gmail.com> writes:
> Fix typos in comment and error message.
>
> Signed-off-by: Johan Hovold <jhovold@gmail.com>
Thanks, queuing for v3.2 (branch: for_3.2/pm-cleanup)
Kevin
> ---
> arch/arm/mach-omap2/pm.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
> index 3feb359..fd77cf4 100644
> --- a/arch/arm/mach-omap2/pm.c
> +++ b/arch/arm/mach-omap2/pm.c
> @@ -163,11 +163,11 @@ err:
> }
>
> /*
> - * This API is to be called during init to put the various voltage
> + * This API is to be called during init to set the various voltage
> * domains to the voltage as per the opp table. Typically we boot up
> * at the nominal voltage. So this function finds out the rate of
> * the clock associated with the voltage domain, finds out the correct
> - * opp entry and puts the voltage domain to the voltage specifies
> + * opp entry and sets the voltage domain to the voltage specified
> * in the opp entry
> */
> static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
> @@ -218,7 +218,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
> return 0;
>
> exit:
> - printk(KERN_ERR "%s: Unable to put vdd_%s to its init voltage\n\n",
> + printk(KERN_ERR "%s: Unable to set vdd_%s to its init voltage\n\n",
> __func__, vdd_name);
> return -EINVAL;
> }
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2 RESEND] OMAP2+: pm: clean up error messages
2011-08-30 16:48 ` [PATCH 2/2 RESEND] OMAP2+: pm: clean up error messages Johan Hovold
@ 2011-08-30 21:15 ` Kevin Hilman
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2011-08-30 21:15 UTC (permalink / raw)
To: linux-arm-kernel
Johan Hovold <jhovold@gmail.com> writes:
> Replace all printks with pr_err.
>
> Clean up error messages by adding missing whitespace, fixing
> capitalisations, removing double newlines, and reducing verbosity.
>
> Signed-off-by: Johan Hovold <jhovold@gmail.com>
Thanks, queuing for v3.2 (branch: for_3.2/pm-cleanup)
Kevin
> ---
> arch/arm/mach-omap2/pm.c | 18 ++++++++----------
> 1 files changed, 8 insertions(+), 10 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
> index fd77cf4..3837818 100644
> --- a/arch/arm/mach-omap2/pm.c
> +++ b/arch/arm/mach-omap2/pm.c
> @@ -137,8 +137,8 @@ int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state)
>
> ret = pwrdm_set_next_pwrst(pwrdm, state);
> if (ret) {
> - printk(KERN_ERR "Unable to set state of powerdomain: %s\n",
> - pwrdm->name);
> + pr_err("%s: unable to set state of powerdomain: %s\n",
> + __func__, pwrdm->name);
> goto err;
> }
>
> @@ -179,21 +179,20 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
> unsigned long freq, bootup_volt;
>
> if (!vdd_name || !clk_name || !dev) {
> - printk(KERN_ERR "%s: Invalid parameters!\n", __func__);
> + pr_err("%s: invalid parameters\n", __func__);
> goto exit;
> }
>
> voltdm = omap_voltage_domain_lookup(vdd_name);
> 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);
> goto exit;
> }
>
> clk = clk_get(NULL, clk_name);
> if (IS_ERR(clk)) {
> - printk(KERN_ERR "%s: unable to get clk %s\n",
> - __func__, clk_name);
> + pr_err("%s: unable to get clk %s\n", __func__, clk_name);
> goto exit;
> }
>
> @@ -202,14 +201,14 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
>
> opp = opp_find_freq_ceil(dev, &freq);
> 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);
> goto exit;
> }
>
> bootup_volt = opp_get_voltage(opp);
> 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);
> goto exit;
> }
> @@ -218,8 +217,7 @@ static int __init omap2_set_init_voltage(char *vdd_name, char *clk_name,
> return 0;
>
> exit:
> - printk(KERN_ERR "%s: Unable to set vdd_%s to its init voltage\n\n",
> - __func__, vdd_name);
> + pr_err("%s: unable to set vdd_%s\n", __func__, vdd_name);
> return -EINVAL;
> }
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-30 21:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87r543rkdk.fsf@ti.com>
2011-08-30 16:48 ` [PATCH 1/2 RESEND] OMAP2+: pm: fix typos Johan Hovold
2011-08-30 16:48 ` [PATCH 2/2 RESEND] OMAP2+: pm: clean up error messages Johan Hovold
2011-08-30 21:15 ` Kevin Hilman
2011-08-30 21:14 ` [PATCH 1/2 RESEND] OMAP2+: pm: fix typos Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).