Skip to content

Commit a3cc927

Browse files
committed
platform/x86: use PLATFORM_DEVID_NONE instead of -1 [partial]
JIRA: https://issues.redhat.com/browse/RHEL-120895 Conflicts: limited to drivers/platform/x86/intel commit 8d05fc0 Author: Barnabás Pőcze <pobrn@protonmail.com> Date: Fri Sep 30 10:59:14 2022 +0000 platform/x86: use PLATFORM_DEVID_NONE instead of -1 Use the `PLATFORM_DEVID_NONE` constant instead of hard-coding -1 when creating a platform device. No functional changes are intended. Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com> Link: https://lore.kernel.org/r/20220930104857.2796923-1-pobrn@protonmail.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: David Arcari <darcari@redhat.com>
1 parent 6ae25cc commit a3cc927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/intel/oaktrail.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ static int __init oaktrail_init(void)
317317
goto err_driver_reg;
318318
}
319319

320-
oaktrail_device = platform_device_alloc(DRIVER_NAME, -1);
320+
oaktrail_device = platform_device_alloc(DRIVER_NAME, PLATFORM_DEVID_NONE);
321321
if (!oaktrail_device) {
322322
pr_warn("Unable to allocate platform device\n");
323323
ret = -ENOMEM;

0 commit comments

Comments
 (0)