diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-07-06 05:13:50 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-07-23 07:24:03 -0400 |
commit | 2437b0d95c609365ce88039b96a1c020af71c6dc (patch) | |
tree | bed047677f2d377282e75bb9df6973b3cbdebb26 /drivers/pwm/pwm-samsung.c | |
parent | 6192fa87447ed3c6c4005be640a088fa8e5733f8 (diff) |
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.c | 6 |
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 @@ | |||
11 | * the Free Software Foundation; either version 2 of the License. | 11 | * the Free Software Foundation; either version 2 of the License. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #define pr_fmt(fmt) "pwm-samsung: " fmt | ||
15 | |||
14 | #include <linux/export.h> | 16 | #include <linux/export.h> |
15 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
16 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
@@ -340,13 +342,13 @@ static int __init pwm_init(void) | |||
340 | clk_scaler[1] = clk_get(NULL, "pwm-scaler1"); | 342 | clk_scaler[1] = clk_get(NULL, "pwm-scaler1"); |
341 | 343 | ||
342 | if (IS_ERR(clk_scaler[0]) || IS_ERR(clk_scaler[1])) { | 344 | if (IS_ERR(clk_scaler[0]) || IS_ERR(clk_scaler[1])) { |
343 | printk(KERN_ERR "%s: failed to get scaler clocks\n", __func__); | 345 | pr_err("failed to get scaler clocks\n"); |
344 | return -EINVAL; | 346 | return -EINVAL; |
345 | } | 347 | } |
346 | 348 | ||
347 | ret = platform_driver_register(&s3c_pwm_driver); | 349 | ret = platform_driver_register(&s3c_pwm_driver); |
348 | if (ret) | 350 | if (ret) |
349 | printk(KERN_ERR "%s: failed to add pwm driver\n", __func__); | 351 | pr_err("failed to add pwm driver\n"); |
350 | 352 | ||
351 | return ret; | 353 | return ret; |
352 | } | 354 | } |