diff --git a/drivers/usb/device/usb_dc_stm32.c b/drivers/usb/device/usb_dc_stm32.c index 175875284bb..f1b1807e16d 100644 --- a/drivers/usb/device/usb_dc_stm32.c +++ b/drivers/usb/device/usb_dc_stm32.c @@ -45,6 +45,10 @@ */ #include +#include +#include +#include +#include #include #include #include diff --git a/soc/arm/st_stm32/stm32l4/soc.h b/soc/arm/st_stm32/stm32l4/soc.h index bd7c0b144db..5ddffaa2c27 100644 --- a/soc/arm/st_stm32/stm32l4/soc.h +++ b/soc/arm/st_stm32/stm32l4/soc.h @@ -41,11 +41,6 @@ #include #endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */ -#ifdef CONFIG_USB -/* Required to remove USB transceiver supply isolation */ -#include -#endif /* CONFIG_USB */ - #endif /* !_ASMLANGUAGE */ #endif /* _STM32L4X_SOC_H_ */