From: Nuno Gonçalves Date: Sun, 28 May 2023 21:06:35 +0000 (+0100) Subject: gl-mifi-mcu: make compatible with newer kernel (fix #21198) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5d8780bf12565c99d72e37e8b22d171a0fe29bcd;p=feed%2Fpackages.git gl-mifi-mcu: make compatible with newer kernel (fix #21198) Signed-off-by: Nuno Gonçalves (cherry picked from commit 9536d28384d0d924e8b03ce42dbc2d61ce4174d0) --- diff --git a/utils/gl-mifi-mcu/Makefile b/utils/gl-mifi-mcu/Makefile index 08183d91e3..dd47e2d553 100755 --- a/utils/gl-mifi-mcu/Makefile +++ b/utils/gl-mifi-mcu/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=gl-mifi-mcu -PKG_VERSION:=1 +PKG_VERSION:=2 PKG_RELEASE:=1 PKG_MAINTAINER:=Nuno Goncalves diff --git a/utils/gl-mifi-mcu/src/module.c b/utils/gl-mifi-mcu/src/module.c index 98fc7fab80..b73016ee83 100755 --- a/utils/gl-mifi-mcu/src/module.c +++ b/utils/gl-mifi-mcu/src/module.c @@ -54,13 +54,13 @@ static const struct file_operations hello_proc_ops = { }; #endif -static irq_handler_t handle_rx_start(unsigned int irq, void* device, struct pt_regs* registers) +static irqreturn_t handle_rx_start(int irq, void* device) { if (rx_bit_index == -1) { hrtimer_start(&timer_rx, ktime_set(0, period / 2), HRTIMER_MODE_REL); } - return (irq_handler_t) IRQ_HANDLED; + return IRQ_HANDLED; } static enum hrtimer_restart handle_tx(struct hrtimer* timer) @@ -178,7 +178,7 @@ static int __init gl_mifi_mcu_init(void) success &= request_irq( gpio_to_irq(gpio_rx), - (irq_handler_t) handle_rx_start, + handle_rx_start, IRQF_TRIGGER_FALLING, "gl_mifi_mcu_irq_handler", NULL) == 0;