From ebd6681589711d1cc759ca3a90f5c54006a83b4d Mon Sep 17 00:00:00 2001 From: Bjarki Arge Andreasen Date: Thu, 28 Sep 2023 17:30:24 +0200 Subject: [PATCH] drivers: serial: serial_test: Patch irq_isr set to undefined This commit fixes an error where the irq_isr callback is set to an undefined variable instead of NULL. Signed-off-by: Bjarki Arge Andreasen --- drivers/serial/serial_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial_test.c b/drivers/serial/serial_test.c index 2ce4fb50f38..f18421b00e5 100644 --- a/drivers/serial/serial_test.c +++ b/drivers/serial/serial_test.c @@ -318,7 +318,7 @@ static int serial_vnd_callback_set(const struct device *dev, uart_callback_t cal } #if defined(CONFIG_UART_EXCLUSIVE_API_CALLBACKS) && defined(CONFIG_UART_INTERRUPT_DRIVEN) - data->irq_isr = cb; + data->irq_isr = NULL; #endif if (callback == NULL && data->read_buf) {