diff options
Diffstat (limited to 'arch/arm/plat-omap/omap_device.c')
-rw-r--r-- | arch/arm/plat-omap/omap_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index cee85a55bd82..7a7d1f2a65e9 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c | |||
@@ -725,7 +725,7 @@ struct platform_device __init *omap_device_build_ss(const char *pdev_name, int p | |||
725 | dev_set_name(&pdev->dev, "%s", pdev->name); | 725 | dev_set_name(&pdev->dev, "%s", pdev->name); |
726 | 726 | ||
727 | od = omap_device_alloc(pdev, ohs, oh_cnt, pm_lats, pm_lats_cnt); | 727 | od = omap_device_alloc(pdev, ohs, oh_cnt, pm_lats, pm_lats_cnt); |
728 | if (!od) | 728 | if (IS_ERR(od)) |
729 | goto odbs_exit1; | 729 | goto odbs_exit1; |
730 | 730 | ||
731 | ret = platform_device_add_data(pdev, pdata, pdata_len); | 731 | ret = platform_device_add_data(pdev, pdata, pdata_len); |