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:
parent
d439478805
commit
5e97d779bb
8 changed files with 28 additions and 24 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue