hwspinlock: Fix typo error(spin_lock_restore to spin_unlock_irqrestore)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
13dfe41f6c
commit
e28f6d6e6e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user