From e28f6d6e6e2a140d73d1fdc96e0c6d597b99a5af Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 25 Jul 2023 13:56:59 +0800 Subject: [PATCH] hwspinlock: Fix typo error(spin_lock_restore to spin_unlock_irqrestore) Signed-off-by: Xiang Xiao --- include/nuttx/hwspinlock/hwspinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/hwspinlock/hwspinlock.h b/include/nuttx/hwspinlock/hwspinlock.h index 0cef4f4cc5..f9b0539046 100644 --- a/include/nuttx/hwspinlock/hwspinlock.h +++ b/include/nuttx/hwspinlock/hwspinlock.h @@ -113,7 +113,7 @@ static inline void hwspin_unlock_restore(FAR struct hwspinlock_dev_s *dev, int id, irqstate_t flags) { hwspin_unlock(dev, id); - spin_lock_restore(&dev->lock, flags); + spin_unlock_irqrestore(&dev->lock, flags); } #ifdef __cplusplus