Commit 6d7e3bf8 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Rob Herring

of: Use PLATFORM_DEVID_NONE definition

Use dedicated definition instead of plain -1 where it's appropriate.

No functional change intended.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 8c2a75e5
...@@ -58,7 +58,7 @@ int of_device_add(struct platform_device *ofdev) ...@@ -58,7 +58,7 @@ int of_device_add(struct platform_device *ofdev)
/* name and id have to be set so that the platform bus doesn't get /* name and id have to be set so that the platform bus doesn't get
* confused on matching */ * confused on matching */
ofdev->name = dev_name(&ofdev->dev); ofdev->name = dev_name(&ofdev->dev);
ofdev->id = -1; ofdev->id = PLATFORM_DEVID_NONE;
/* /*
* If this device has not binding numa node in devicetree, that is * If this device has not binding numa node in devicetree, that is
......
...@@ -118,7 +118,7 @@ struct platform_device *of_device_alloc(struct device_node *np, ...@@ -118,7 +118,7 @@ struct platform_device *of_device_alloc(struct device_node *np,
int rc, i, num_reg = 0, num_irq; int rc, i, num_reg = 0, num_irq;
struct resource *res, temp_res; struct resource *res, temp_res;
dev = platform_device_alloc("", -1); dev = platform_device_alloc("", PLATFORM_DEVID_NONE);
if (!dev) if (!dev)
return NULL; return NULL;
......
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