aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 @@
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}