diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2022-09-30 12:59:14 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-10-03 09:40:04 +0200 |
commit | 8d05fc039456517d2c246c7b202891188ba40c4d (patch) | |
tree | b9655715ea55679b961f5805ee3d0e4527d08556 /drivers/platform/x86/sony-laptop.c | |
parent | platform/x86/amd: pmc: Dump idle mask during "check" stage instead (diff) | |
download | linux-8d05fc039456517d2c246c7b202891188ba40c4d.tar.xz 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/sony-laptop.c')
-rw-r--r-- | drivers/platform/x86/sony-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 07ef05f727a2..765fcaba4d12 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c @@ -584,7 +584,7 @@ static int sony_pf_add(void) if (ret) goto out; - sony_pf_device = platform_device_alloc("sony-laptop", -1); + sony_pf_device = platform_device_alloc("sony-laptop", PLATFORM_DEVID_NONE); if (!sony_pf_device) { ret = -ENOMEM; goto out_platform_registered; |