Skip to content

Commit 6256673

Browse files
hujun260xiaoxiang781216
authored andcommitted
rp23xx_pio.c: rm spin_lock_irqsave(NULL) in arch/arm/src/rp23xx/rp23xx_pio.c
Signed-off-by: hujun5 <[email protected]>
1 parent 57ca4e1 commit 6256673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/src/rp23xx/rp23xx_pio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
#define hw_claim_lock() spin_lock_irqsave(&pio_lock)
4747
#define hw_claim_unlock(save) spin_unlock_irqrestore(&pio_lock, save)
4848
#else
49-
#define hw_claim_lock() spin_lock_irqsave(NULL)
50-
#define hw_claim_unlock(save) spin_unlock_irqrestore(NULL, save)
49+
#define hw_claim_lock() up_irq_save()
50+
#define hw_claim_unlock(save) up_irq_restore(save)
5151
#endif
5252

5353
/****************************************************************************

0 commit comments

Comments
 (0)