summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/winmate-fm07-keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86/winmate-fm07-keys.c')
-rw-r--r--drivers/platform/x86/winmate-fm07-keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/winmate-fm07-keys.c b/drivers/platform/x86/winmate-fm07-keys.c
index 2c90c5c7eca2..465ffad81a65 100644
--- a/drivers/platform/x86/winmate-fm07-keys.c
+++ b/drivers/platform/x86/winmate-fm07-keys.c
@@ -161,7 +161,7 @@ static int __init fm07keys_init(void)
return ret;
}
- dev = platform_device_register_simple(DRV_NAME, -1, NULL, 0);
+ dev = platform_device_register_simple(DRV_NAME, PLATFORM_DEVID_NONE, NULL, 0);
if (IS_ERR(dev)) {
ret = PTR_ERR(dev);
pr_err("fm07keys: failed to allocate device, err = %d\n", ret);