Skip to content

Commit

Permalink
ixp4xx_eth: Remove references to BUS_ID_SIZE.
Browse files Browse the repository at this point in the history
Use MII_BUS_ID_SIZE instead.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 27, 2009
1 parent 2b0cc7f commit 0e53c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/arm/ixp4xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ static int __devinit eth_init_one(struct platform_device *pdev)
struct net_device *dev;
struct eth_plat_info *plat = pdev->dev.platform_data;
u32 regs_phys;
char phy_id[BUS_ID_SIZE];
char phy_id[MII_BUS_ID_SIZE + 3];
int err;

if (!(dev = alloc_etherdev(sizeof(struct port))))
Expand Down Expand Up @@ -1207,7 +1207,7 @@ static int __devinit eth_init_one(struct platform_device *pdev)
__raw_writel(DEFAULT_CORE_CNTRL, &port->regs->core_control);
udelay(50);

snprintf(phy_id, BUS_ID_SIZE, PHY_ID_FMT, "0", plat->phy);
snprintf(phy_id, MII_BUS_ID_SIZE + 3, PHY_ID_FMT, "0", plat->phy);
port->phydev = phy_connect(dev, phy_id, &ixp4xx_adjust_link, 0,
PHY_INTERFACE_MODE_MII);
if ((err = IS_ERR(port->phydev)))
Expand Down

0 comments on commit 0e53c7f

Please sign in to comment.