Fix clevo keyboard init order

This commit is contained in:
Christoffer Sandberg 2021-01-29 14:34:23 +01:00
parent 4f763e9e74
commit 7ad2c50d1f
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D
2 changed files with 6 additions and 6 deletions

View file

@ -120,12 +120,12 @@ static int clevo_acpi_add(struct acpi_device *device)
pr_debug("clevo_acpi driver add\n");
// Initiate clevo keyboard, if not already loaded by other interface driver
clevo_keyboard_init();
// Add this interface
clevo_keyboard_add_interface(&clevo_acpi_interface);
// Initiate clevo keyboard, if not already loaded by other interface driver
clevo_keyboard_init();
pr_info("interface initialized\n");
return 0;

View file

@ -107,12 +107,12 @@ static int clevo_wmi_probe(struct wmi_device *wdev, const void *dummy_context)
return -ENODEV;
}
// Initiate clevo keyboard, if not already loaded by other interface driver
clevo_keyboard_init();
// Add this interface
clevo_keyboard_add_interface(&clevo_wmi_interface);
// Initiate clevo keyboard, if not already loaded by other interface driver
clevo_keyboard_init();
pr_info("interface initialized\n");
return 0;