summaryrefslogtreecommitdiff
path: root/libdde-linux26/contrib/drivers/base/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdde-linux26/contrib/drivers/base/platform.c')
-rw-r--r--libdde-linux26/contrib/drivers/base/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdde-linux26/contrib/drivers/base/platform.c b/libdde-linux26/contrib/drivers/base/platform.c
index 349a1013..030d638c 100644
--- a/libdde-linux26/contrib/drivers/base/platform.c
+++ b/libdde-linux26/contrib/drivers/base/platform.c
@@ -244,7 +244,7 @@ int platform_device_add(struct platform_device *pdev)
if (pdev->id != -1)
dev_set_name(&pdev->dev, "%s.%d", pdev->name, pdev->id);
else
- dev_set_name(&pdev->dev, pdev->name);
+ dev_set_name(&pdev->dev, "%s", pdev->name);
for (i = 0; i < pdev->num_resources; i++) {
struct resource *p, *r = &pdev->resource[i];