Amitoj Kaur Chawla 423595e89d iommu/exynos: Fix error handling for of_platform_device_create
of_platform_device_create returns NULL on error so an IS_ERR test is
incorrect here and a NULL check is required.

The Coccinelle semantic patch used to make this change is as follows:
@@
expression e;
@@

  e = of_platform_device_create(...);
if(
-    IS_ERR(e)
+    !e
    )
    {
  <+...
  return
- PTR_ERR(e)
+ -ENODEV
  ;
  ...+>
  }

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2016-08-09 17:27:48 +02:00
..
2015-06-23 18:27:19 -07:00
2016-08-01 07:25:10 -04:00
2016-08-01 07:25:10 -04:00
2015-02-03 18:47:18 +01:00
2016-02-16 08:04:06 -08:00
2016-06-21 13:56:00 +02:00
2015-11-26 14:41:01 +01:00