Skip to content

Commit 34aa6f1

Browse files
Nobuhiro Iwamatsudavem330
authored andcommitted
net: sh-eth: Fix build error by the value which is not defined
----- drivers/net/ethernet/renesas/sh_eth.c:1706: error: 'pdid' undeclared (first use in this function) drivers/net/ethernet/renesas/sh_eth.c:1706: error: (Each undeclared identifier is reported only once drivers/net/ethernet/renesas/sh_eth.c:1706: error: for each function it appears in.) make[5]: *** [drivers/net/ethernet/renesas/sh_eth.o] Error 1 ----- Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> CC: Florian Fainelli <florian@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e52ac33 commit 34aa6f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ethernet/renesas/sh_eth.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ static int sh_mdio_init(struct net_device *ndev, int id,
17031703
mdp->mii_bus->name = "sh_mii";
17041704
mdp->mii_bus->parent = &ndev->dev;
17051705
snprintf(mdp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
1706-
mdp->pdev->name, pdid);
1706+
mdp->pdev->name, id);
17071707

17081708
/* PHY IRQ */
17091709
mdp->mii_bus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL);

0 commit comments

Comments
 (0)