diff options
Diffstat (limited to 'drivers/net/fec_mpc52xx.c')
-rw-r--r-- | drivers/net/fec_mpc52xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c index 94054b4981f3..cd8e98b45ec5 100644 --- a/drivers/net/fec_mpc52xx.c +++ b/drivers/net/fec_mpc52xx.c | |||
@@ -216,7 +216,7 @@ static int mpc52xx_fec_init_phy(struct net_device *dev) | |||
216 | struct phy_device *phydev; | 216 | struct phy_device *phydev; |
217 | char phy_id[BUS_ID_SIZE]; | 217 | char phy_id[BUS_ID_SIZE]; |
218 | 218 | ||
219 | snprintf(phy_id, BUS_ID_SIZE, "%x:%02x", | 219 | snprintf(phy_id, sizeof(phy_id), "%x:%02x", |
220 | (unsigned int)dev->base_addr, priv->phy_addr); | 220 | (unsigned int)dev->base_addr, priv->phy_addr); |
221 | 221 | ||
222 | priv->link = PHY_DOWN; | 222 | priv->link = PHY_DOWN; |