Commit 036b6687 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

mdio: fix non-constant printk warnings

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a64cd64
...@@ -99,7 +99,7 @@ int mdiobus_register(struct mii_bus *bus) ...@@ -99,7 +99,7 @@ int mdiobus_register(struct mii_bus *bus)
bus->dev.parent = bus->parent; bus->dev.parent = bus->parent;
bus->dev.class = &mdio_bus_class; bus->dev.class = &mdio_bus_class;
bus->dev.groups = NULL; bus->dev.groups = NULL;
dev_set_name(&bus->dev, bus->id); dev_set_name(&bus->dev, "%s", bus->id);
err = device_register(&bus->dev); err = device_register(&bus->dev);
if (err) { if (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment