summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/dell/dell-laptop.c
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2022-09-30 10:59:14 +0000
committerHans de Goede <hdegoede@redhat.com>2022-10-03 09:40:04 +0200
commit8d05fc039456517d2c246c7b202891188ba40c4d (patch)
treeb9655715ea55679b961f5805ee3d0e4527d08556 /drivers/platform/x86/dell/dell-laptop.c
parentc928df03bde92d70babeb22d500f528256758aee (diff)
downloadlinux-stable-8d05fc039456517d2c246c7b202891188ba40c4d.tar.gz
linux-stable-8d05fc039456517d2c246c7b202891188ba40c4d.tar.bz2
linux-stable-8d05fc039456517d2c246c7b202891188ba40c4d.zip
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>
Diffstat (limited to 'drivers/platform/x86/dell/dell-laptop.c')
-rw-r--r--drivers/platform/x86/dell/dell-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell/dell-laptop.c b/drivers/platform/x86/dell/dell-laptop.c
index 1321687d923e..e92c3ad06d69 100644
--- a/drivers/platform/x86/dell/dell-laptop.c
+++ b/drivers/platform/x86/dell/dell-laptop.c
@@ -2193,7 +2193,7 @@ static int __init dell_init(void)
ret = platform_driver_register(&platform_driver);
if (ret)
goto fail_platform_driver;
- platform_device = platform_device_alloc("dell-laptop", -1);
+ platform_device = platform_device_alloc("dell-laptop", PLATFORM_DEVID_NONE);
if (!platform_device) {
ret = -ENOMEM;
goto fail_platform_device1;