drivers: modem: gsm_ppp: Fix ppp_dev
ppp_dev should be pointing to the net/ppp driver. Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
fa7959c197
commit
293af9e823
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ static struct net_if *ppp_net_if(void)
|
||||||
static void set_ppp_carrier_on(struct gsm_modem *gsm)
|
static void set_ppp_carrier_on(struct gsm_modem *gsm)
|
||||||
{
|
{
|
||||||
static const struct ppp_api *api;
|
static const struct ppp_api *api;
|
||||||
const struct device *ppp_dev = DEVICE_DT_GET(DT_INST(0, zephyr_gsm_ppp));
|
const struct device *ppp_dev = device_get_binding(CONFIG_NET_PPP_DRV_NAME);
|
||||||
struct net_if *iface = gsm->iface;
|
struct net_if *iface = gsm->iface;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue