Commit 80cbc806 authored by Sascha Hauer's avatar Sascha Hauer Committed by Abel Vesa

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: default avatarSascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: default avatarAbel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/20220304125256.2125023-8-s.hauer@pengutronix.deSigned-off-by: default avatarAbel Vesa <abel.vesa@nxp.com>
parent 5ff50031
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
* Copyright 2017-2018 NXP. * Copyright 2017-2018 NXP.
*/ */
#define pr_fmt(fmt) "pll14xx: " fmt
#include <linux/bitfield.h> #include <linux/bitfield.h>
#include <linux/bits.h> #include <linux/bits.h>
#include <linux/clk-provider.h> #include <linux/clk-provider.h>
...@@ -177,8 +179,8 @@ static int clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate, ...@@ -177,8 +179,8 @@ static int clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate,
rate = imx_get_pll_settings(pll, drate); rate = imx_get_pll_settings(pll, drate);
if (!rate) { if (!rate) {
pr_err("%s: Invalid rate : %lu for pll clk %s\n", __func__, pr_err("Invalid rate %lu for pll clk %s\n", drate,
drate, clk_hw_get_name(hw)); clk_hw_get_name(hw));
return -EINVAL; return -EINVAL;
} }
...@@ -404,8 +406,7 @@ struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name, ...@@ -404,8 +406,7 @@ struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name,
init.ops = &clk_pll1443x_ops; init.ops = &clk_pll1443x_ops;
break; break;
default: default:
pr_err("%s: Unknown pll type for pll clk %s\n", pr_err("Unknown pll type for pll clk %s\n", name);
__func__, name);
kfree(pll); kfree(pll);
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }
...@@ -424,8 +425,7 @@ struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name, ...@@ -424,8 +425,7 @@ struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name,
ret = clk_hw_register(dev, hw); ret = clk_hw_register(dev, hw);
if (ret) { if (ret) {
pr_err("%s: failed to register pll %s %d\n", pr_err("failed to register pll %s %d\n", name, ret);
__func__, name, ret);
kfree(pll); kfree(pll);
return ERR_PTR(ret); return ERR_PTR(ret);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment