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

@ -789,5 +789,5 @@ static int gsm_init(const struct device *device)
return 0;
}
DEVICE_INIT(gsm_ppp, GSM_MODEM_DEVICE_NAME, gsm_init, &gsm, NULL, POST_KERNEL,
CONFIG_MODEM_GSM_INIT_PRIORITY);
DEVICE_DEFINE(gsm_ppp, GSM_MODEM_DEVICE_NAME, gsm_init, &gsm, NULL, NULL,
POST_KERNEL, CONFIG_MODEM_GSM_INIT_PRIORITY, NULL);