mach-tegra: Make benign warning as info
pdabade [Thu, 29 Aug 2013 06:14:41 +0000 (11:14 +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 1256079

Change-Id: Ib1390db9de8358457750789ffee010a229031f55
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/267743
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Tested-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/mach-tegra/pwm.c

index 16ed7fd..b476f0a 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_unprepare(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);
 }