aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-omap/omap_device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c
index ea0d659fcb1c..d2b160942ccc 100644
--- a/arch/arm/plat-omap/omap_device.c
+++ b/arch/arm/plat-omap/omap_device.c
@@ -407,7 +407,9 @@ struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id,
407 od->pdev.num_resources = res_count; 407 od->pdev.num_resources = res_count;
408 od->pdev.resource = res; 408 od->pdev.resource = res;
409 409
410 platform_device_add_data(&od->pdev, pdata, pdata_len); 410 ret = platform_device_add_data(&od->pdev, pdata, pdata_len);
411 if (ret)
412 goto odbs_exit4;
411 413
412 od->pm_lats = pm_lats; 414 od->pm_lats = pm_lats;
413 od->pm_lats_cnt = pm_lats_cnt; 415 od->pm_lats_cnt = pm_lats_cnt;