drivers/pwm: stm32: Leftovers in clock_control conversion to dts

Fix omissions.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-05-05 12:13:48 +02:00 committed by Kumar Gala
commit 07e5644ac6

View file

@ -130,9 +130,9 @@ static int get_tim_clk(const struct stm32_pclken *pclken, uint32_t *tim_clk)
#if defined(CONFIG_SOC_SERIES_STM32H7X)
if (pclken->bus == STM32_CLOCK_BUS_APB1) {
apb_psc = CONFIG_CLOCK_STM32_D2PPRE1;
apb_psc = STM32_D2PPRE1;
} else {
apb_psc = CONFIG_CLOCK_STM32_D2PPRE2;
apb_psc = STM32_D2PPRE2;
}
#else
if (pclken->bus == STM32_CLOCK_BUS_APB1) {