Skip to content

Commit 8b95b25

Browse files
gmarullcfriedt
authored andcommitted
drivers: gpio: stm32: replace SYS_DEVICE_DEFINE with SYS_INIT
SYS_INIT can be used for the same purpose, what is being run is simply an initialization hook. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 422728e commit 8b95b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,6 @@ static int gpio_stm32_afio_init(const struct device *dev)
730730
return 0;
731731
}
732732

733-
SYS_DEVICE_DEFINE("gpio_stm32_afio", gpio_stm32_afio_init, PRE_KERNEL_1, 0);
733+
SYS_INIT(gpio_stm32_afio_init, PRE_KERNEL_1, 0);
734734

735735
#endif /* CONFIG_SOC_SERIES_STM32F1X && !CONFIG_GPIO_STM32_SWJ_ENABLE */

0 commit comments

Comments
 (0)