Commit 49b368a6 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by Tony Lindgren

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: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Acked-by: default avatarNishanth Menon <nm@ti.com>
Acked-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 7590d1de
...@@ -407,7 +407,9 @@ struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id, ...@@ -407,7 +407,9 @@ struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id,
od->pdev.num_resources = res_count; od->pdev.num_resources = res_count;
od->pdev.resource = res; od->pdev.resource = res;
platform_device_add_data(&od->pdev, pdata, pdata_len); ret = platform_device_add_data(&od->pdev, pdata, pdata_len);
if (ret)
goto odbs_exit4;
od->pm_lats = pm_lats; od->pm_lats = pm_lats;
od->pm_lats_cnt = pm_lats_cnt; od->pm_lats_cnt = pm_lats_cnt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment