diff options
-rw-r--r-- | arch/arm/mach-omap2/omap_device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index d45cbfdb4be6..2e91eb8ab33c 100644 --- a/arch/arm/mach-omap2/omap_device.c +++ b/arch/arm/mach-omap2/omap_device.c | |||
@@ -516,8 +516,10 @@ struct platform_device __init *omap_device_build(const char *pdev_name, | |||
516 | goto odbs_exit1; | 516 | goto odbs_exit1; |
517 | 517 | ||
518 | od = omap_device_alloc(pdev, &oh, 1); | 518 | od = omap_device_alloc(pdev, &oh, 1); |
519 | if (IS_ERR(od)) | 519 | if (IS_ERR(od)) { |
520 | ret = PTR_ERR(od); | ||
520 | goto odbs_exit1; | 521 | goto odbs_exit1; |
522 | } | ||
521 | 523 | ||
522 | ret = platform_device_add_data(pdev, pdata, pdata_len); | 524 | ret = platform_device_add_data(pdev, pdata, pdata_len); |
523 | if (ret) | 525 | if (ret) |