arch: arm: mach-tegra: Make benign warning as info
pdabade [Sat, 21 Dec 2013 16:47:53 +0000 (21:47 +0530)]
A request to set brightness to zero is valid irrespective
of what previous brightness of backlight was. A request of
zero brightness disables PWM; so a re-request can be made
to disable a already disabled PWM.

bug 1416333

Change-Id: Ia5f29911456eb5d76fa303bb9070a6f04ec97002
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/348366
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

arch/arm/mach-tegra/pwm.c

index d5533c7..f2c43e9 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Tegra pulse-width-modulation controller driver
  *
- * Copyright (c) 2010, NVIDIA Corporation.
+ * Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved.
  * Based on arch/arm/plat-mxc/pwm.c by Sascha Hauer <s.hauer@pengutronix.de>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -131,7 +131,7 @@ void pwm_disable(struct pwm_device *pwm)
                clk_disable(pwm->clk);
                pwm->clk_enb = 0;
        } else
-               dev_warn(&pwm->pdev->dev, "%s called on disabled PWM\n",
+               dev_info(&pwm->pdev->dev, "%s called on disabled PWM\n",
                         __func__);
        mutex_unlock(&pwm_lock);
 }