Update clevo_acpi.c for Linux 6.10

The upstream kernel removed the owner field of `struct acpi_driver` in version 6.10 (cc85f9c05b). Fix the resulting compile error by removing the now-obsolete assignment to `.owner` in kernel 6.10 and later.
This commit is contained in:
Owen Williams 2024-07-24 21:59:47 -04:00 committed by GitHub
parent 403dc6a283
commit ceaab21231
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,7 +186,9 @@ static const struct acpi_device_id clevo_acpi_device_ids[] = {
static struct acpi_driver clevo_acpi_driver = {
.name = DRIVER_NAME,
.class = DRIVER_NAME,
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 10, 0)
.owner = THIS_MODULE,
#endif
.ids = clevo_acpi_device_ids,
.flags = ACPI_DRIVER_ALL_NOTIFY_EVENTS,
.ops = {