diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2010-04-28 16:21:16 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2010-05-17 13:44:56 +0300 |
commit | 2cda1a32dafa93f95e4c924068ac245345e5918c (patch) | |
tree | db23420a4a65d1a85cb85be6b9a91ecc36737da2 /drivers/isimodem/isimodem.c | |
parent | 89cd67f0760bb44aed2ccadaf829ab5b6db63d29 (diff) | |
download | ofono-2cda1a32dafa93f95e4c924068ac245345e5918c.tar.bz2 |
Use g_pn_netlink_by_modem() in isimodem driver
Diffstat (limited to 'drivers/isimodem/isimodem.c')
-rw-r--r-- | drivers/isimodem/isimodem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isimodem/isimodem.c b/drivers/isimodem/isimodem.c index d60bb919..92a0320c 100644 --- a/drivers/isimodem/isimodem.c +++ b/drivers/isimodem/isimodem.c @@ -255,8 +255,7 @@ static int isi_modem_probe(struct ofono_modem *modem) return -errno; } - link = g_pn_netlink_by_name(ifname); - if (link) { + if (g_pn_netlink_by_modem(idx)) { DBG("%s: %s", ifname, strerror(EBUSY)); return -EBUSY; } |