From: Benjamin Herrenschmidt Date: Tue, 16 Jun 2009 15:55:18 +0000 (+0000) Subject: powerpc/of: Fix usage of dev_set_name() in of_device_alloc() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=03c01aa740d4137ea2884328f2c29956c6084834;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/arch/powerpc/kernel/of_device.c b/arch/powerpc/kernel/of_device.c index fa983a59c4ce..a359cb08e900 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);