735-v5.14-01-net-dsa-qca8k-change-simple-print-to-dev-variant.patch 1.2 KB

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