device: convert DEVICE_INIT to DEVICE_DEFINE or SYS_DEVICE_DEFINE

Convert handful of users of DEVICE_INIT to DEVICE_DEFINE or
SYS_DEVICE_DEFINE to allow deprecation of DEVICE_INIT.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-11-05 06:08:30 -06:00 committed by Kumar Gala
commit 5e97d779bb
8 changed files with 28 additions and 24 deletions

View file

@ -649,6 +649,6 @@ static int gpio_stm32_afio_init(const struct device *device)
return 0;
}
DEVICE_INIT(gpio_stm32_afio, "", gpio_stm32_afio_init, NULL, NULL, PRE_KERNEL_2, 0);
SYS_DEVICE_DEFINE("gpio_stm32_afio", gpio_stm32_afio_init, NULL, PRE_KERNEL_2, 0);
#endif /* CONFIG_SOC_SERIES_STM32F1X */