diff --git a/arch/arm/src/stm32/stm32_rtc_lowerhalf.c b/arch/arm/src/stm32/stm32_rtc_lowerhalf.c index c56970b0c24..eb732b16e6d 100644 --- a/arch/arm/src/stm32/stm32_rtc_lowerhalf.c +++ b/arch/arm/src/stm32/stm32_rtc_lowerhalf.c @@ -121,7 +121,9 @@ static const struct rtc_ops_s g_rtc_ops = #ifdef CONFIG_RTC_IOCTL .ioctl = NULL, #endif +#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS .destroy = NULL, +#endif }; /* STM32 RTC device state */