gpio-button-hotplug: fix for linux 6.12

This commit is contained in:
coolsnowwolf 2025-01-23 04:20:57 +08:00 committed by GitHub
parent 89624f51bc
commit 08296f25e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -695,7 +695,9 @@ static int gpio_keys_remove(struct platform_device *pdev)
static struct platform_driver gpio_keys_driver = { static struct platform_driver gpio_keys_driver = {
.probe = gpio_keys_probe, .probe = gpio_keys_probe,
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0)
.remove = gpio_keys_remove, .remove = gpio_keys_remove,
#endif
.driver = { .driver = {
.name = "gpio-keys", .name = "gpio-keys",
.owner = THIS_MODULE, .owner = THIS_MODULE,
@ -705,7 +707,9 @@ static struct platform_driver gpio_keys_driver = {
static struct platform_driver gpio_keys_polled_driver = { static struct platform_driver gpio_keys_polled_driver = {
.probe = gpio_keys_polled_probe, .probe = gpio_keys_polled_probe,
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0)
.remove = gpio_keys_remove, .remove = gpio_keys_remove,
#endif
.driver = { .driver = {
.name = "gpio-keys-polled", .name = "gpio-keys-polled",
.owner = THIS_MODULE, .owner = THIS_MODULE,