diff options
Diffstat (limited to 'drivers/net/ethernet/ti/cpmac.c')
-rw-r--r-- | drivers/net/ethernet/ti/cpmac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c index 3809f4ec2820..f9bcf7aa88ca 100644 --- a/drivers/net/ethernet/ti/cpmac.c +++ b/drivers/net/ethernet/ti/cpmac.c | |||
@@ -1130,6 +1130,7 @@ static int cpmac_probe(struct platform_device *pdev) | |||
1130 | strncpy(mdio_bus_id, "fixed-0", MII_BUS_ID_SIZE); /* fixed phys bus */ | 1130 | strncpy(mdio_bus_id, "fixed-0", MII_BUS_ID_SIZE); /* fixed phys bus */ |
1131 | phy_id = pdev->id; | 1131 | phy_id = pdev->id; |
1132 | } | 1132 | } |
1133 | mdio_bus_id[sizeof(mdio_bus_id) - 1] = '\0'; | ||
1133 | 1134 | ||
1134 | dev = alloc_etherdev_mq(sizeof(*priv), CPMAC_QUEUES); | 1135 | dev = alloc_etherdev_mq(sizeof(*priv), CPMAC_QUEUES); |
1135 | if (!dev) | 1136 | if (!dev) |