mirror of git://git.sysmocom.de/ofono
lte: update to the new API
This commit is contained in:
parent
0cbddaf98b
commit
158159ecb0
|
@ -244,6 +244,7 @@ static void lte_atom_remove(struct ofono_atom *atom)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ofono_lte *ofono_lte_create(struct ofono_modem *modem,
|
struct ofono_lte *ofono_lte_create(struct ofono_modem *modem,
|
||||||
|
unsigned int vendor,
|
||||||
const char *driver, void *data)
|
const char *driver, void *data)
|
||||||
{
|
{
|
||||||
struct ofono_lte *lte;
|
struct ofono_lte *lte;
|
||||||
|
@ -266,7 +267,7 @@ struct ofono_lte *ofono_lte_create(struct ofono_modem *modem,
|
||||||
if (g_strcmp0(drv->name, driver))
|
if (g_strcmp0(drv->name, driver))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (drv->probe(lte, data) < 0)
|
if (drv->probe(lte, vendor, data) < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
lte->driver = drv;
|
lte->driver = drv;
|
||||||
|
|
Loading…
Reference in New Issue