Skip to content

Commit 80cbc80

Browse files
saschahauerabelvesa
authored andcommitted
clk: imx: pll14xx: Add pr_fmt
Print all messages from within the pll14xx driver with a common prefix using pr_fmt. No need to print function names anymore, so drop them from the messages. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Abel Vesa <abel.vesa@nxp.com> Link: https://lore.kernel.org/r/20220304125256.2125023-8-s.hauer@pengutronix.de Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
1 parent 5ff5003 commit 80cbc80

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/clk/imx/clk-pll14xx.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright 2017-2018 NXP.
44
*/
55

6+
#define pr_fmt(fmt) "pll14xx: " fmt
7+
68
#include <linux/bitfield.h>
79
#include <linux/bits.h>
810
#include <linux/clk-provider.h>
@@ -177,8 +179,8 @@ static int clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate,
177179

178180
rate = imx_get_pll_settings(pll, drate);
179181
if (!rate) {
180-
pr_err("%s: Invalid rate : %lu for pll clk %s\n", __func__,
181-
drate, clk_hw_get_name(hw));
182+
pr_err("Invalid rate %lu for pll clk %s\n", drate,
183+
clk_hw_get_name(hw));
182184
return -EINVAL;
183185
}
184186

@@ -404,8 +406,7 @@ struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name,
404406
init.ops = &clk_pll1443x_ops;
405407
break;
406408
default:
407-
pr_err("%s: Unknown pll type for pll clk %s\n",
408-
__func__, name);
409+
pr_err("Unknown pll type for pll clk %s\n", name);
409410
kfree(pll);
410411
return ERR_PTR(-EINVAL);
411412
}
@@ -424,8 +425,7 @@ struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name,
424425

425426
ret = clk_hw_register(dev, hw);
426427
if (ret) {
427-
pr_err("%s: failed to register pll %s %d\n",
428-
__func__, name, ret);
428+
pr_err("failed to register pll %s %d\n", name, ret);
429429
kfree(pll);
430430
return ERR_PTR(ret);
431431
}

0 commit comments

Comments
 (0)