Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2437b0d9 authored by Sachin Kamat's avatar Sachin Kamat Committed by Thierry Reding
Browse files

pwm: Use pr_* functions in pwm-samsung.c file



Replace printk with pr_* functions to avoid checkpatch warnings.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
parent 6192fa87
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -11,6 +11,8 @@
 * the Free Software Foundation; either version 2 of the License.
 * the Free Software Foundation; either version 2 of the License.
*/
*/


#define pr_fmt(fmt) "pwm-samsung: " fmt

#include <linux/export.h>
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/platform_device.h>
@@ -340,13 +342,13 @@ static int __init pwm_init(void)
	clk_scaler[1] = clk_get(NULL, "pwm-scaler1");
	clk_scaler[1] = clk_get(NULL, "pwm-scaler1");


	if (IS_ERR(clk_scaler[0]) || IS_ERR(clk_scaler[1])) {
	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;
		return -EINVAL;
	}
	}


	ret = platform_driver_register(&s3c_pwm_driver);
	ret = platform_driver_register(&s3c_pwm_driver);
	if (ret)
	if (ret)
		printk(KERN_ERR "%s: failed to add pwm driver\n", __func__);
		pr_err("failed to add pwm driver\n");


	return ret;
	return ret;
}
}