summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-samsung.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-07-06 14:43:50 +0530
committerThierry Reding <thierry.reding@avionic-design.de>2012-07-23 13:24:03 +0200
commit2437b0d95c609365ce88039b96a1c020af71c6dc (patch)
treebed047677f2d377282e75bb9df6973b3cbdebb26 /drivers/pwm/pwm-samsung.c
parent6192fa87447ed3c6c4005be640a088fa8e5733f8 (diff)
downloadlinux-2437b0d95c609365ce88039b96a1c020af71c6dc.tar.gz
linux-2437b0d95c609365ce88039b96a1c020af71c6dc.tar.bz2
linux-2437b0d95c609365ce88039b96a1c020af71c6dc.zip
pwm: Use pr_* functions in pwm-samsung.c file
Replace printk with pr_* functions to avoid checkpatch warnings. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/pwm/pwm-samsung.c')
-rw-r--r--drivers/pwm/pwm-samsung.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-samsung.c b/drivers/pwm/pwm-samsung.c
index 35fa0e8b0f87..d10386528c9c 100644
--- a/drivers/pwm/pwm-samsung.c
+++ b/drivers/pwm/pwm-samsung.c
@@ -11,6 +11,8 @@
* the Free Software Foundation; either version 2 of the License.
*/
+#define pr_fmt(fmt) "pwm-samsung: " fmt
+
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
@@ -340,13 +342,13 @@ static int __init pwm_init(void)
clk_scaler[1] = clk_get(NULL, "pwm-scaler1");
if (IS_ERR(clk_scaler[0]) || IS_ERR(clk_scaler[1])) {
- printk(KERN_ERR "%s: failed to get scaler clocks\n", __func__);
+ pr_err("failed to get scaler clocks\n");
return -EINVAL;
}
ret = platform_driver_register(&s3c_pwm_driver);
if (ret)
- printk(KERN_ERR "%s: failed to add pwm driver\n", __func__);
+ pr_err("failed to add pwm driver\n");
return ret;
}