From 5d8780bf12565c99d72e37e8b22d171a0fe29bcd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nuno=20Gon=C3=A7alves?= Date: Sun, 28 May 2023 22:06:35 +0100 Subject: [PATCH] gl-mifi-mcu: make compatible with newer kernel (fix #21198) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Nuno Gonçalves (cherry picked from commit 9536d28384d0d924e8b03ce42dbc2d61ce4174d0) --- utils/gl-mifi-mcu/Makefile | 2 +- utils/gl-mifi-mcu/src/module.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.30.2