Commit 3b33438c authored by Paul Barker's avatar Paul Barker Committed by David S. Miller

net: dsa: b53: Use dev_{err,info} instead of pr_*

This change allows us to see which device the err or info messages are
referring to if we have multiple b53 compatible devices on a board.

As this removes the only pr_*() calls in this file we can drop the
definition of pr_fmt().
Signed-off-by: default avatarPaul Barker <pbarker@konsulko.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 22b330b6
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/export.h> #include <linux/export.h>
#include <linux/gpio.h> #include <linux/gpio.h>
...@@ -2620,7 +2618,8 @@ int b53_switch_detect(struct b53_device *dev) ...@@ -2620,7 +2618,8 @@ int b53_switch_detect(struct b53_device *dev)
dev->chip_id = id32; dev->chip_id = id32;
break; break;
default: default:
pr_err("unsupported switch detected (BCM53%02x/BCM%x)\n", dev_err(dev->dev,
"unsupported switch detected (BCM53%02x/BCM%x)\n",
id8, id32); id8, id32);
return -ENODEV; return -ENODEV;
} }
...@@ -2651,7 +2650,8 @@ int b53_switch_register(struct b53_device *dev) ...@@ -2651,7 +2650,8 @@ int b53_switch_register(struct b53_device *dev)
if (ret) if (ret)
return ret; return ret;
pr_info("found switch: %s, rev %i\n", dev->name, dev->core_rev); dev_info(dev->dev, "found switch: %s, rev %i\n",
dev->name, dev->core_rev);
return dsa_register_switch(dev->ds); return dsa_register_switch(dev->ds);
} }
......
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