diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-16 15:55:18 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-26 16:55:35 +1000 |
commit | 03c01aa740d4137ea2884328f2c29956c6084834 (patch) | |
tree | d4df186a14b294fd29acc50041d214995dd89fe2 /arch | |
parent | 6893ce6c1cdcf489b7ca8e6b6596208aa971a083 (diff) | |
download | kernel_samsung_aries-03c01aa740d4137ea2884328f2c29956c6084834.zip kernel_samsung_aries-03c01aa740d4137ea2884328f2c29956c6084834.tar.gz kernel_samsung_aries-03c01aa740d4137ea2884328f2c29956c6084834.tar.bz2 |
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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/of_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/of_device.c b/arch/powerpc/kernel/of_device.c index fa983a5..a359cb0 100644 --- a/arch/powerpc/kernel/of_device.c +++ b/arch/powerpc/kernel/of_device.c @@ -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); |