diff mbox

[v2] cpufreq: s5pv210: drop check for CONFIG_PM_VERBOSE

Message ID 1400857500.31526.52.camel@x220 (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Paul Bolle May 23, 2014, 3:05 p.m. UTC
A pr_err() was added in v3.1. It was guarded by a check for
CONFIG_PM_VERBOSE. The Kconfig symbol PM_VERBOSE was removed in v3.0. So
this pr_err() has never been used. Drop that check and clean up the
message a bit.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
v1 was called "cpufreq: s5pv210: remove unused call of pr_err()". v2
keeps the pr_err() and trims down its arguments, as Sachin requested.

Still untested.

 drivers/cpufreq/s5pv210-cpufreq.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Viresh Kumar May 23, 2014, 3:10 p.m. UTC | #1
On 23 May 2014 20:35, Paul Bolle <pebolle@tiscali.nl> wrote:
> A pr_err() was added in v3.1. It was guarded by a check for
> CONFIG_PM_VERBOSE. The Kconfig symbol PM_VERBOSE was removed in v3.0. So
> this pr_err() has never been used. Drop that check and clean up the
> message a bit.
>
> Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
> ---
> v1 was called "cpufreq: s5pv210: remove unused call of pr_err()". v2
> keeps the pr_err() and trims down its arguments, as Sachin requested.
>
> Still untested.
>
>  drivers/cpufreq/s5pv210-cpufreq.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c
> index ab2c1a40d437..19a10b89fef7 100644
> --- a/drivers/cpufreq/s5pv210-cpufreq.c
> +++ b/drivers/cpufreq/s5pv210-cpufreq.c
> @@ -175,10 +175,8 @@ static int s5pv210_target(struct cpufreq_policy *policy, unsigned int index)
>         mutex_lock(&set_freq_lock);
>
>         if (no_cpufreq_access) {
> -#ifdef CONFIG_PM_VERBOSE
> -               pr_err("%s:%d denied access to %s as it is disabled"
> -                               "temporarily\n", __FILE__, __LINE__, __func__);
> -#endif
> +               pr_err("Denied access to %s as it is disabled temporarily\n",
> +                      __func__);
>                 ret = -EINVAL;
>                 goto exit;
>         }

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sachin Kamat May 23, 2014, 3:14 p.m. UTC | #2
Hi Paul,

On 23 May 2014 20:35, Paul Bolle <pebolle@tiscali.nl> wrote:
> A pr_err() was added in v3.1. It was guarded by a check for
> CONFIG_PM_VERBOSE. The Kconfig symbol PM_VERBOSE was removed in v3.0. So
> this pr_err() has never been used. Drop that check and clean up the
> message a bit.
>
> Signed-off-by: Paul Bolle <pebolle@tiscali.nl>

Reviewed-by: Sachin Kamat <sachin.kamat@linaro.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c
index ab2c1a40d437..19a10b89fef7 100644
--- a/drivers/cpufreq/s5pv210-cpufreq.c
+++ b/drivers/cpufreq/s5pv210-cpufreq.c
@@ -175,10 +175,8 @@  static int s5pv210_target(struct cpufreq_policy *policy, unsigned int index)
 	mutex_lock(&set_freq_lock);
 
 	if (no_cpufreq_access) {
-#ifdef CONFIG_PM_VERBOSE
-		pr_err("%s:%d denied access to %s as it is disabled"
-				"temporarily\n", __FILE__, __LINE__, __func__);
-#endif
+		pr_err("Denied access to %s as it is disabled temporarily\n",
+		       __func__);
 		ret = -EINVAL;
 		goto exit;
 	}