diff --git a/arch/arm/src/stm32/stm32_pwm.c b/arch/arm/src/stm32/stm32_pwm.c index d25b12ebe35..bfb33240ff9 100644 --- a/arch/arm/src/stm32/stm32_pwm.c +++ b/arch/arm/src/stm32/stm32_pwm.c @@ -1104,7 +1104,7 @@ static struct stm32_pwmtimer_s g_pwm5dev = .deadtime = 0, /* No deadtime */ #endif #if defined(HAVE_TRGO) && defined(STM32_TIM5_TRGO) - .trgo = STM32_TIM5_TRGO + .trgo = STM32_TIM5_TRGO, #endif #ifdef CONFIG_PWM_PULSECOUNT .irq = STM32_IRQ_TIM5, @@ -3227,8 +3227,6 @@ static int pwm_pulsecount_configure(FAR struct pwm_lowerhalf_s *dev) uint8_t j = 0; int ret = OK; - UNUSED(priv); - /* NOTE: leave timer counter disabled and all outputs disabled! */ /* Disable the timer until we get it configured */