kernel: b53: add switch name into printk when it fails.
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 6 Oct 2013 22:35:28 +0000 (22:35 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 6 Oct 2013 22:35:28 +0000 (22:35 +0000)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 38307

target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c

index 6403cc63886f029a2f6948638c169d6459fe31c4..cacf32b613d67473620ae73f5b05890b47f304c9 100644 (file)
@@ -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;
        }