Skip to content

Commit

Permalink
rp23xx_pio.c: rm spin_lock_irqsave(NULL) in arch/arm/src/rp23xx/rp23x…
Browse files Browse the repository at this point in the history
…x_pio.c

Signed-off-by: hujun5 <hujun5@xiaomi.com>
  • Loading branch information
hujun260 committed Jan 3, 2025
1 parent 7220acd commit d5128ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/src/rp23xx/rp23xx_pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

/****************************************************************************
Expand Down

0 comments on commit d5128ba

Please sign in to comment.