diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-03-26 16:50:36 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-03-26 16:50:36 -0500 |
commit | 979b244fcf5b678a664413f1b22cc7d6b94de25e (patch) | |
tree | 6929fbd9d18b9606be74962134bdd232079a8c40 /drivers/hsomodem | |
parent | ab4cfc10701ebd82717fa7c281e561829a62a58e (diff) |
hsomodem: Remove atom if driver fails to init
Diffstat (limited to 'drivers/hsomodem')
-rw-r--r-- | drivers/hsomodem/radio-settings.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/hsomodem/radio-settings.c b/drivers/hsomodem/radio-settings.c index 0d4a06bd..e3d87f32 100644 --- a/drivers/hsomodem/radio-settings.c +++ b/drivers/hsomodem/radio-settings.c @@ -159,8 +159,10 @@ static void opsys_support_cb(gboolean ok, GAtResult *result, gpointer user_data) { struct ofono_radio_settings *rs = user_data; - if (!ok) + if (!ok) { + ofono_radio_settings_remove(rs); return; + } ofono_radio_settings_register(rs); } |