some replacements were omitted.

fix regression from https://github.com/apache/nuttx/pull/15219

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2024-12-17 17:03:02 +08:00 committed by Xiang Xiao
parent 3025212c2c
commit ad42a06060

View file

@ -533,7 +533,7 @@ int sam_configgpio(gpio_pinset_t cfgset)
/* Disable writing to GPIO registers */ /* Disable writing to GPIO registers */
putreg32(PIO_WPMR_WPEN | PIO_WPMR_WPKEY, base + SAM_PIO_WPMR_OFFSET); putreg32(PIO_WPMR_WPEN | PIO_WPMR_WPKEY, base + SAM_PIO_WPMR_OFFSET);
leave_critical_section(flags); spin_unlock_irqrestore(&g_configgpio_lock, flags);
return ret; return ret;
} }
@ -663,7 +663,7 @@ int sam_dumpgpio(uint32_t pinset, const char *msg)
getreg32(base + SAM_PIO_PCISR_OFFSET), getreg32(base + SAM_PIO_PCISR_OFFSET),
getreg32(base + SAM_PIO_PCRHR_OFFSET)); getreg32(base + SAM_PIO_PCRHR_OFFSET));
leave_critical_section(flags); spin_unlock_irqrestore(&g_configgpio_lock, flags);
return OK; return OK;
} }
#endif #endif