mdio: fix non-constant printk warnings
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6a64cd64c0
commit
036b66879a
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Reference in a new issue