From: Hauke Mehrtens Date: Sun, 6 Oct 2013 22:35:28 +0000 (+0000) Subject: kernel: b53: add switch name into printk when it fails. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=53a2c19c69d03bbdb81f1c27f9bc0b81b8da5ee4;p=openwrt%2Fstaging%2Fluka.git kernel: b53: add switch name into printk when it fails. Signed-off-by: Hauke Mehrtens SVN-Revision: 38307 --- diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c b/target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c index 6403cc6388..cacf32b613 100644 --- a/target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c @@ -296,7 +296,7 @@ static int b53_phy_config_init(struct phy_device *phydev) ret = b53_switch_register(dev); if (ret) { - pr_info("failed to register switch: %i\n", ret); + dev_err(dev->dev, "failed to register switch: %i\n", ret); return ret; }