summaryrefslogtreecommitdiff
path: root/drivers/hsomodem
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-03-26 16:50:36 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-03-26 16:50:36 -0500
commit979b244fcf5b678a664413f1b22cc7d6b94de25e (patch)
tree6929fbd9d18b9606be74962134bdd232079a8c40 /drivers/hsomodem
parentab4cfc10701ebd82717fa7c281e561829a62a58e (diff)
hsomodem: Remove atom if driver fails to init
Diffstat (limited to 'drivers/hsomodem')
-rw-r--r--drivers/hsomodem/radio-settings.c4
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);
}