aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-07-12 09:38:07 -0400
committerTony Lindgren <tony@atomide.com>2010-08-04 07:43:51 -0400
commit49b368a6b3e803fe4f0a10c14f8fde3f20998f04 (patch)
tree2e6077341970ccabb6f93222a36b42a30b105a12 /arch/arm
parent7590d1defdc720a97a9e186f45f529c4ae1b40f7 (diff)
omap: device: improve errors handling
Do not forget to check the 'platform_device_add_data()' error code in 'omap_device_build_ss()'. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Acked-by: Nishanth Menon <nm@ti.com> Acked-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-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;