Skip to content

Commit

Permalink
some replacements were omitted.
Browse files Browse the repository at this point in the history
fix regression from apache#15219

Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 authored and linguini1 committed Dec 27, 2024
1 parent a19945b commit 6f6aa2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/src/samv7/sam_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ int sam_configgpio(gpio_pinset_t cfgset)
/* Disable writing to GPIO registers */

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;
}
Expand Down Expand Up @@ -666,7 +666,7 @@ int sam_dumpgpio(uint32_t pinset, const char *msg)
getreg32(base + SAM_PIO_PCISR_OFFSET),
getreg32(base + SAM_PIO_PCRHR_OFFSET));

leave_critical_section(flags);
spin_unlock_irqrestore(&g_configgpio_lock, flags);
return OK;
}
#endif

0 comments on commit 6f6aa2b

Please sign in to comment.