diff options
author | John Garry <john.garry@huawei.com> | 2022-09-01 13:04:11 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-09-03 21:55:25 +0300 |
commit | 2814108cbf54cd4737cd13e17291b21590472dca (patch) | |
tree | feaf9dba4afe9952d3b2012bfc4b465d7297fb43 /drivers/acpi/acpi_platform.c | |
parent | 1902d158bc86370c29bbb7d5f0e4b9a86a6c6c48 (diff) | |
download | linux-2814108cbf54cd4737cd13e17291b21590472dca.tar.xz |
ACPI: platform: Use PLATFORM_DEVID_NONE in acpi_create_platform_device()
Instead of hardcoding the value for the id, use PLATFORM_DEVID_NONE.
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_platform.c')
-rw-r--r-- | drivers/acpi/acpi_platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c index 176cc6ee14d8..ebd18c716b50 100644 --- a/drivers/acpi/acpi_platform.c +++ b/drivers/acpi/acpi_platform.c @@ -138,7 +138,7 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev, pdevinfo.parent = adev->parent ? acpi_get_first_physical_node(adev->parent) : NULL; pdevinfo.name = dev_name(&adev->dev); - pdevinfo.id = -1; + pdevinfo.id = PLATFORM_DEVID_NONE; pdevinfo.res = resources; pdevinfo.num_res = count; pdevinfo.fwnode = acpi_fwnode_handle(adev); |