Skip to content

Commit 302ab40

Browse files
kbidanikartben
authored andcommitted
drivers: clock_control: stm32: fix compilation issue
Fix compilation issue in test overlay without pll like hse_8_bypass.overlay and hsi_8.overlay Signed-off-by: Khaoula Bidani <[email protected]>
1 parent 6c75315 commit 302ab40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clock_control/clock_stm32_ll_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ static int stm32_clock_control_get_subsys_rate(const struct device *clock,
612612
#endif /* STM32_TIMER_PRESCALER && (RCC_DCKCFGR_TIMPRE || RCC_DCKCFGR1_TIMPRE) */
613613
break;
614614
#endif /* STM32_SRC_TIMPCLK2 */
615-
#if defined(STM32_SRC_TIMPLLCLK)
615+
#if defined(STM32_SRC_TIMPLLCLK) && DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(pll))
616616
case STM32_SRC_TIMPLLCLK:
617617
*rate = get_pllout_frequency() * 2;
618618
if (*rate == 0) {

0 commit comments

Comments
 (0)