Skip to content

Commit 293af9e

Browse files
ycsincfriedt
authored andcommitted
drivers: modem: gsm_ppp: Fix ppp_dev
ppp_dev should be pointing to the net/ppp driver. Signed-off-by: Yong Cong Sin <[email protected]>
1 parent fa7959c commit 293af9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/modem/gsm_ppp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ static struct net_if *ppp_net_if(void)
525525
static void set_ppp_carrier_on(struct gsm_modem *gsm)
526526
{
527527
static const struct ppp_api *api;
528-
const struct device *ppp_dev = DEVICE_DT_GET(DT_INST(0, zephyr_gsm_ppp));
528+
const struct device *ppp_dev = device_get_binding(CONFIG_NET_PPP_DRV_NAME);
529529
struct net_if *iface = gsm->iface;
530530
int ret;
531531

0 commit comments

Comments
 (0)