diff options
author | Kurt Kanzenbach <kurt@linutronix.de> | 2020-11-21 14:44:55 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-24 03:57:21 +0300 |
commit | ed5ef9fb2023cb6e6a85ff6617a30acd8df63075 (patch) | |
tree | bd79b690876b3c6214b1ee650138e6bba3159f0b /drivers/net/dsa | |
parent | 8551fad63cd3e9e86926966da68d66fc19a6928d (diff) | |
download | linux-ed5ef9fb2023cb6e6a85ff6617a30acd8df63075.tar.xz |
net: dsa: hellcreek: Don't print error message on defer
When DSA is not loaded when the driver is probed an error message is
printed. But, that's not really an error, just a defer. Use dev_err_probe()
instead.
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/hirschmann/hellcreek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/hirschmann/hellcreek.c b/drivers/net/dsa/hirschmann/hellcreek.c index d42f40c76ba5..6420b76ea37c 100644 --- a/drivers/net/dsa/hirschmann/hellcreek.c +++ b/drivers/net/dsa/hirschmann/hellcreek.c @@ -1266,7 +1266,7 @@ static int hellcreek_probe(struct platform_device *pdev) ret = dsa_register_switch(hellcreek->ds); if (ret) { - dev_err(dev, "Unable to register switch\n"); + dev_err_probe(dev, ret, "Unable to register switch\n"); return ret; } |