Skip to content

Commit

Permalink
powerpc/of: Fix usage of dev_set_name() in of_device_alloc()
Browse files Browse the repository at this point in the history
dev_set_name() takes a format string, so use it properly and avoid
a warning with recent gcc's

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
ozbenh committed Jun 26, 2009
1 parent 6893ce6 commit 03c01aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 03c01aa

Please sign in to comment.