From 3e055391aef865b53c27568e996aea85aa7b814e Mon Sep 17 00:00:00 2001 From: hujun5 Date: Mon, 6 Jan 2025 09:34:01 +0800 Subject: [PATCH] rp23xx_pio.c: rm spin_lock_irqsave(NULL) in arch/arm/src/rp23xx/rp23xx_pio.c Signed-off-by: hujun5 --- arch/arm/src/rp23xx/rp23xx_pio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/rp23xx/rp23xx_pio.c b/arch/arm/src/rp23xx/rp23xx_pio.c index c89d7904f0b06..ef04170c13d1a 100644 --- a/arch/arm/src/rp23xx/rp23xx_pio.c +++ b/arch/arm/src/rp23xx/rp23xx_pio.c @@ -46,8 +46,8 @@ #define hw_claim_lock() spin_lock_irqsave(&pio_lock) #define hw_claim_unlock(save) spin_unlock_irqrestore(&pio_lock, save) #else -#define hw_claim_lock() spin_lock_irqsave(NULL) -#define hw_claim_unlock(save) spin_unlock_irqrestore(NULL, save) +#define hw_claim_lock() up_irq_save() +#define hw_claim_unlock(save) up_irq_restore(save) #endif /****************************************************************************