hwspinlock: Fix typo error(spin_lock_restore to spin_unlock_irqrestore)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-07-25 13:56:59 +08:00 committed by Alin Jerpelea
parent 13dfe41f6c
commit e28f6d6e6e

View File

@ -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