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>
This commit is contained in:

committed by
Rob Herring

parent
8c2a75e568
commit
6d7e3bf8d1
@@ -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
|
||||
|
Reference in New Issue
Block a user