diff --git a/package/kernel/button-hotplug/src/button-hotplug.c b/package/kernel/button-hotplug/src/button-hotplug.c index 86cfe5633f..7201751115 100644 --- a/package/kernel/button-hotplug/src/button-hotplug.c +++ b/package/kernel/button-hotplug/src/button-hotplug.c @@ -203,7 +203,7 @@ static int button_hotplug_create_event(const char *name, unsigned long seen, event->seen = seen; event->action = pressed ? "pressed" : "released"; - INIT_WORK(&event->work, (void *)(void *)button_hotplug_work); + INIT_WORK(&event->work, button_hotplug_work); schedule_work(&event->work); return 0; diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c index 997721c222..6b8f15a19b 100644 --- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c +++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c @@ -219,7 +219,7 @@ static int button_hotplug_create_event(const char *name, unsigned int type, event->seen = seen; event->action = pressed ? "pressed" : "released"; - INIT_WORK(&event->work, (void *)(void *)button_hotplug_work); + INIT_WORK(&event->work, button_hotplug_work); schedule_work(&event->work); return 0; diff --git a/target/linux/ramips/patches-6.18/810-uvc-add-iPassion-iP2970-support.patch b/target/linux/ramips/patches-6.18/810-uvc-add-iPassion-iP2970-support.patch index dc95864c28..dc5c9d56de 100644 --- a/target/linux/ramips/patches-6.18/810-uvc-add-iPassion-iP2970-support.patch +++ b/target/linux/ramips/patches-6.18/810-uvc-add-iPassion-iP2970-support.patch @@ -188,7 +188,7 @@ Signed-off-by: John Crispin + + event->name = "motion"; + -+ INIT_WORK(&event->work, (void *)(void *)motion_hotplug_work); ++ INIT_WORK(&event->work, motion_hotplug_work); + schedule_work(&event->work); + + return 0;