drivers: modem: gsm: Fix DEVICE_DEFINE() data ptr

The commit 5e97d779bb ("device: convert DEVICE_INIT to DEVICE_DEFINE
or SYS_DEVICE_DEFINE") did not convert the gsm_ppp.c properly. The
power management parameter was not set to NULL but was pointing to
the data pointer.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2020-11-16 15:02:57 +02:00 committed by Anas Nashif
commit b16602afb5

View file

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