Fix Error: chip/nuc_timerisr.c:105:20: error: unused function 'nuc_unlock' [-Werror,-Wunused-function]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-13 11:05:37 +08:00 committed by Xiang Xiao
parent fb618666f6
commit 492da4d56d

View file

@ -101,7 +101,7 @@
*
****************************************************************************/
#ifdef CONFIG_NUC_SYSTICK_CORECLK
#ifndef CONFIG_NUC_SYSTICK_CORECLK
static inline void nuc_unlock(void)
{
putreg32(0x59, NUC_GCR_REGWRPROT);
@ -124,7 +124,7 @@ static inline void nuc_unlock(void)
*
****************************************************************************/
#ifdef CONFIG_NUC_SYSTICK_CORECLK
#ifndef CONFIG_NUC_SYSTICK_CORECLK
static inline void nuc_lock(void)
{
putreg32(0, NUC_GCR_REGWRPROT);