aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/platform/x86/hp-wmi.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/hp-wmi.c
parentplatform/x86/amd: pmc: Dump idle mask during "check" stage instead (diff)
downloadwireguard-linux-8d05fc039456517d2c246c7b202891188ba40c4d.tar.xz
wireguard-linux-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/hp-wmi.c')
-rw-r--r--drivers/platform/x86/hp-wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
index da0d25c67e57..627a6d0eaf83 100644
--- a/drivers/platform/x86/hp-wmi.c
+++ b/drivers/platform/x86/hp-wmi.c
@@ -1519,7 +1519,7 @@ static int __init hp_wmi_init(void)
if (bios_capable) {
hp_wmi_platform_dev =
- platform_device_register_simple("hp-wmi", -1, NULL, 0);
+ platform_device_register_simple("hp-wmi", PLATFORM_DEVID_NONE, NULL, 0);
if (IS_ERR(hp_wmi_platform_dev)) {
err = PTR_ERR(hp_wmi_platform_dev);
goto err_destroy_input;