summaryrefslogtreecommitdiffstats
path: root/drivers/of/platform.c
diff options
context:
space:
mode:
authorAndy Shevchenko2017-08-25 17:33:13 +0200
committerRob Herring2017-08-25 17:50:31 +0200
commit6d7e3bf8d12c0ae8b297de428e67301df1b95c5f (patch)
tree737d75a7f60e2a9c780edf6487bf5dad3133d33e /drivers/of/platform.c
parentof/device: Fix of_device_get_modalias() buffer handling (diff)
downloadkernel-qcow2-linux-6d7e3bf8d12c0ae8b297de428e67301df1b95c5f.tar.gz
kernel-qcow2-linux-6d7e3bf8d12c0ae8b297de428e67301df1b95c5f.tar.xz
kernel-qcow2-linux-6d7e3bf8d12c0ae8b297de428e67301df1b95c5f.zip
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/platform.c')
-rw-r--r--drivers/of/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 683b2e74bef7..ac15d0e3d27d 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -118,7 +118,7 @@ struct platform_device *of_device_alloc(struct device_node *np,
int rc, i, num_reg = 0, num_irq;
struct resource *res, temp_res;
- dev = platform_device_alloc("", -1);
+ dev = platform_device_alloc("", PLATFORM_DEVID_NONE);
if (!dev)
return NULL;