aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/omap_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap/omap_device.c')
-rw-r--r--arch/arm/plat-omap/omap_device.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c
index c490240bb82c..ff57b5aeba4e 100644
--- a/arch/arm/plat-omap/omap_device.c
+++ b/arch/arm/plat-omap/omap_device.c
@@ -370,6 +370,14 @@ static int omap_device_build_from_dt(struct platform_device *pdev)
370 goto odbfd_exit1; 370 goto odbfd_exit1;
371 } 371 }
372 372
373 /* Fix up missing resource names */
374 for (i = 0; i < pdev->num_resources; i++) {
375 struct resource *r = &pdev->resource[i];
376
377 if (r->name == NULL)
378 r->name = dev_name(&pdev->dev);
379 }
380
373 if (of_get_property(node, "ti,no_idle_on_suspend", NULL)) 381 if (of_get_property(node, "ti,no_idle_on_suspend", NULL))
374 omap_device_disable_idle_on_suspend(pdev); 382 omap_device_disable_idle_on_suspend(pdev);
375 383