mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
gpio-button-hotplug: fix for linux 6.12
This commit is contained in:
parent
89624f51bc
commit
08296f25e8
@ -695,7 +695,9 @@ static int gpio_keys_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver gpio_keys_driver = {
|
||||
.probe = gpio_keys_probe,
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0)
|
||||
.remove = gpio_keys_remove,
|
||||
#endif
|
||||
.driver = {
|
||||
.name = "gpio-keys",
|
||||
.owner = THIS_MODULE,
|
||||
@ -705,7 +707,9 @@ static struct platform_driver gpio_keys_driver = {
|
||||
|
||||
static struct platform_driver gpio_keys_polled_driver = {
|
||||
.probe = gpio_keys_polled_probe,
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0)
|
||||
.remove = gpio_keys_remove,
|
||||
#endif
|
||||
.driver = {
|
||||
.name = "gpio-keys-polled",
|
||||
.owner = THIS_MODULE,
|
||||
|
Loading…
Reference in New Issue
Block a user