From 12e77a3c70dcd0ef67a9c989c1279ac308cbba70 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 17 Sep 2009 10:15:34 -0500 Subject: Convert all the modem drivers to the new API --- plugins/novatel.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'plugins/novatel.c') diff --git a/plugins/novatel.c b/plugins/novatel.c index dac8dc4c..adbb36ae 100644 --- a/plugins/novatel.c +++ b/plugins/novatel.c @@ -141,13 +141,21 @@ static int novatel_disable(struct ofono_modem *modem) return 0; } -static void novatel_populate(struct ofono_modem *modem) +static void novatel_pre_sim(struct ofono_modem *modem) { struct novatel_data *data = ofono_modem_get_data(modem); DBG("%p", modem); ofono_devinfo_create(modem, 0, "atmodem", data->chat); +} + +static void novatel_post_sim(struct ofono_modem *modem) +{ + struct novatel_data *data = ofono_modem_get_data(modem); + + DBG("%p", modem); + ofono_netreg_create(modem, 0, "atmodem", data->chat); } @@ -157,7 +165,8 @@ static struct ofono_modem_driver novatel_driver = { .remove = novatel_remove, .enable = novatel_enable, .disable = novatel_disable, - .populate = novatel_populate, + .pre_sim = novatel_pre_sim, + .post_sim = novatel_post_sim, }; static int novatel_init(void) -- cgit v1.2.3