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>
This commit is contained in:
John Garry 2022-09-01 18:04:11 +08:00 committed by Rafael J. Wysocki
parent 1902d158bc
commit 2814108cbf

View file

@ -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);