summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/amilo-rfkill.c
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2022-09-30 13:59:14 +0300
committerHans de Goede <hdegoede@redhat.com>2022-10-03 10:40:04 +0300
commit8d05fc039456517d2c246c7b202891188ba40c4d (patch)
treeb9655715ea55679b961f5805ee3d0e4527d08556 /drivers/platform/x86/amilo-rfkill.c
parentc928df03bde92d70babeb22d500f528256758aee (diff)
downloadlinux-8d05fc039456517d2c246c7b202891188ba40c4d.tar.xz
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/amilo-rfkill.c')
-rw-r--r--drivers/platform/x86/amilo-rfkill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/amilo-rfkill.c b/drivers/platform/x86/amilo-rfkill.c
index 493e169c8f61..3e313c4d538d 100644
--- a/drivers/platform/x86/amilo-rfkill.c
+++ b/drivers/platform/x86/amilo-rfkill.c
@@ -150,7 +150,8 @@ static int __init amilo_rfkill_init(void)
if (rc)
return rc;
- amilo_rfkill_pdev = platform_device_register_simple(KBUILD_MODNAME, -1,
+ amilo_rfkill_pdev = platform_device_register_simple(KBUILD_MODNAME,
+ PLATFORM_DEVID_NONE,
NULL, 0);
if (IS_ERR(amilo_rfkill_pdev)) {
rc = PTR_ERR(amilo_rfkill_pdev);