diff --git a/drivers/gpio/gpio_stm32.c b/drivers/gpio/gpio_stm32.c index 736540bc258..22602ce17ae 100644 --- a/drivers/gpio/gpio_stm32.c +++ b/drivers/gpio/gpio_stm32.c @@ -241,7 +241,7 @@ int gpio_stm32_configure(const struct device *dev, int pin, int conf, int altf) /** * @brief GPIO port clock handling */ -int gpio_stm32_clock_request(const struct device *dev, bool on) +static int gpio_stm32_clock_request(const struct device *dev, bool on) { const struct gpio_stm32_config *cfg = dev->config; int ret = 0; diff --git a/drivers/gpio/gpio_stm32.h b/drivers/gpio/gpio_stm32.h index 7e98d15784a..e33c5566590 100644 --- a/drivers/gpio/gpio_stm32.h +++ b/drivers/gpio/gpio_stm32.h @@ -243,12 +243,4 @@ struct gpio_stm32_data { */ int gpio_stm32_configure(const struct device *dev, int pin, int conf, int altf); -/** - * @brief Enable / disable GPIO port clock. - * - * @param dev GPIO port device pointer - * @param on boolean for on/off clock request - */ -int gpio_stm32_clock_request(const struct device *dev, bool on); - #endif /* ZEPHYR_DRIVERS_GPIO_GPIO_STM32_H_ */