diff options
| -rw-r--r-- | arch/arm/mach-omap2/display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index 7012068ccbf6..a51ece491b91 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c | |||
| @@ -221,7 +221,7 @@ static struct platform_device *create_dss_pdev(const char *pdev_name, | |||
| 221 | 221 | ||
| 222 | ohs[0] = oh; | 222 | ohs[0] = oh; |
| 223 | od = omap_device_alloc(pdev, ohs, 1, NULL, 0); | 223 | od = omap_device_alloc(pdev, ohs, 1, NULL, 0); |
| 224 | if (!od) { | 224 | if (IS_ERR(od)) { |
| 225 | pr_err("Could not alloc omap_device for %s\n", pdev_name); | 225 | pr_err("Could not alloc omap_device for %s\n", pdev_name); |
| 226 | r = -ENOMEM; | 226 | r = -ENOMEM; |
| 227 | goto err; | 227 | goto err; |
