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