Skip to content

Commit 2814108

Browse files
John Garryrafaeljw
authored andcommitted
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>
1 parent 1902d15 commit 2814108

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/acpi_platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev,
138138
pdevinfo.parent = adev->parent ?
139139
acpi_get_first_physical_node(adev->parent) : NULL;
140140
pdevinfo.name = dev_name(&adev->dev);
141-
pdevinfo.id = -1;
141+
pdevinfo.id = PLATFORM_DEVID_NONE;
142142
pdevinfo.res = resources;
143143
pdevinfo.num_res = count;
144144
pdevinfo.fwnode = acpi_fwnode_handle(adev);

0 commit comments

Comments
 (0)