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

@ -413,6 +413,7 @@ static int sam0_eic_init(const struct device *dev)
}
static struct sam0_eic_data eic_data;
DEVICE_INIT(sam0_eic, DT_INST_LABEL(0), sam0_eic_init,
&eic_data, NULL,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
DEVICE_DEFINE(sam0_eic, DT_INST_LABEL(0), sam0_eic_init,
NULL, &eic_data, NULL,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
NULL);