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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue