X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Ffiles%2Fdrivers%2Fnet%2Fethernet%2Fatheros%2Fag71xx%2Fag71xx_ar7240.c;h=3fa6cca36afa892933d95d73f2344453ef2214ec;hp=9a51f786f98d5d79e90067fdee5cf28a61bc3805;hb=a8ffa10f54480df9775012e43ce1ae8d7c373fb4;hpb=c45fd03e7029c018ac8ab99a2826e1ca5557f235 diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c index 9a51f786f9..3fa6cca36a 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c @@ -1043,7 +1043,7 @@ static struct ar7240sw *ar7240_probe(struct ag71xx *ag) if ((phy_id1 != AR7240_PHY_ID1 || phy_id2 != AR7240_PHY_ID2) && (phy_id1 != AR934X_PHY_ID1 || phy_id2 != AR934X_PHY_ID2)) { pr_err("%s: unknown phy id '%04x:%04x'\n", - ag->dev->name, phy_id1, phy_id2); + dev_name(&mii->dev), phy_id1, phy_id2); return NULL; } @@ -1074,7 +1074,7 @@ static struct ar7240sw *ar7240_probe(struct ag71xx *ag) AR934X_OPER_MODE0_PHY_MII_EN); } else { pr_err("%s: invalid PHY interface mode\n", - ag->dev->name); + dev_name(&mii->dev)); goto err_free; } @@ -1087,7 +1087,7 @@ static struct ar7240sw *ar7240_probe(struct ag71xx *ag) } } else { pr_err("%s: unsupported chip, ctrl=%08x\n", - ag->dev->name, ctrl); + dev_name(&mii->dev), ctrl); goto err_free; } @@ -1098,7 +1098,7 @@ static struct ar7240sw *ar7240_probe(struct ag71xx *ag) if (register_switch(&as->swdev, ag->dev) < 0) goto err_free; - pr_info("%s: Found an %s\n", ag->dev->name, swdev->name); + pr_info("%s: Found an %s\n", dev_name(&mii->dev), swdev->name); /* initialize defaults */ for (i = 0; i < AR7240_MAX_VLANS; i++)