diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-08-25 18:33:13 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2017-08-25 10:50:31 -0500 |
commit | 6d7e3bf8d12c0ae8b297de428e67301df1b95c5f (patch) | |
tree | 737d75a7f60e2a9c780edf6487bf5dad3133d33e /drivers/of/device.c | |
parent | 8c2a75e5687e0137ddbb35454c7a1a468079f790 (diff) |
of: Use PLATFORM_DEVID_NONE definition
Use dedicated definition instead of plain -1 where it's appropriate.
No functional change intended.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/device.c')
-rw-r--r-- | drivers/of/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/device.c b/drivers/of/device.c index 11a17582e568..af31e6b9ac74 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -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 * confused on matching */ 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 |