Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03c01aa7 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt
Browse files

powerpc/of: Fix usage of dev_set_name() in of_device_alloc()



dev_set_name() takes a format string, so use it properly and avoid
a warning with recent gcc's

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 6893ce6c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ struct of_device *of_device_alloc(struct device_node *np,
	dev->dev.archdata.of_node = np;

	if (bus_id)
		dev_set_name(&dev->dev, bus_id);
		dev_set_name(&dev->dev, "%s", bus_id);
	else
		of_device_make_bus_id(dev);