From ec7237c38a7d2e00cb9bfaf12f447a778def10fa Mon Sep 17 00:00:00 2001 From: Maciej Zagrabski Date: Tue, 6 Dec 2022 13:02:09 +0100 Subject: [PATCH] drivers: gsm_ppp: replace DT_INST with DT_DRV_INST Replace error prone DT_INST with proper DT_DRV_INST. Signed-off-by: Maciej Zagrabski --- drivers/modem/gsm_ppp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/modem/gsm_ppp.c b/drivers/modem/gsm_ppp.c index be4067cf004..fa91e0f77f2 100644 --- a/drivers/modem/gsm_ppp.c +++ b/drivers/modem/gsm_ppp.c @@ -1364,5 +1364,5 @@ static int gsm_init(const struct device *dev) return 0; } -DEVICE_DT_DEFINE(DT_INST(0, zephyr_gsm_ppp), gsm_init, NULL, &gsm, NULL, +DEVICE_DT_DEFINE(DT_DRV_INST(0), gsm_init, NULL, &gsm, NULL, POST_KERNEL, CONFIG_MODEM_GSM_INIT_PRIORITY, NULL);