b8e6d9b613e5e72230985e0d6abb7c79736a774c
[openwrt/staging/aparcar.git] /
1 From 5d9e068402dcf7354cc8ee66c2152845306d2ccb Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Fri, 14 May 2021 22:59:51 +0200
4 Subject: [PATCH] net: dsa: qca8k: change simple print to dev variant
5
6 Change pr_err and pr_warn to dev variant.
7
8 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
9 Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
10 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
11 Signed-off-by: David S. Miller <davem@davemloft.net>
12 ---
13 drivers/net/dsa/qca8k.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 --- a/drivers/net/dsa/qca8k.c
17 +++ b/drivers/net/dsa/qca8k.c
18 @@ -701,7 +701,7 @@ qca8k_setup(struct dsa_switch *ds)
19
20 /* Make sure that port 0 is the cpu port */
21 if (!dsa_is_cpu_port(ds, 0)) {
22 - pr_err("port 0 is not the CPU port\n");
23 + dev_err(priv->dev, "port 0 is not the CPU port");
24 return -EINVAL;
25 }
26
27 @@ -711,7 +711,7 @@ qca8k_setup(struct dsa_switch *ds)
28 priv->regmap = devm_regmap_init(ds->dev, NULL, priv,
29 &qca8k_regmap_config);
30 if (IS_ERR(priv->regmap))
31 - pr_warn("regmap initialization failed");
32 + dev_warn(priv->dev, "regmap initialization failed");
33
34 ret = qca8k_setup_mdio_bus(priv);
35 if (ret)