From: John Garry Date: Thu, 1 Sep 2022 10:04:11 +0000 (+0800) Subject: ACPI: platform: Use PLATFORM_DEVID_NONE in acpi_create_platform_device() X-Git-Tag: v6.6.17~6540^2~6^4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2814108cbf54cd4737cd13e17291b21590472dca;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Andy Shevchenko Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c index 176cc6e..ebd18c7 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);