diff --git a/drivers/pinmux/stm32/pinmux_stm32.c b/drivers/pinmux/stm32/pinmux_stm32.c index 335920dd4ae..dfc13b4514c 100644 --- a/drivers/pinmux/stm32/pinmux_stm32.c +++ b/drivers/pinmux/stm32/pinmux_stm32.c @@ -61,7 +61,7 @@ static int enable_port(uint32_t port, struct device *clk) } /* TODO: Merge this and move the port clock to the soc file */ -#ifdef CONFIG_SOC_SERIES_STM32F1X +#if defined(CONFIG_SOC_SERIES_STM32F1X) || defined(CONFIG_SOC_SERIES_STM32L4X) clock_control_subsys_t subsys = stm32_get_port_clock(port); return clock_control_on(clk, subsys);