From 86e64128fa77effc98f93a0a50cb6832683ed285 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 26 Mar 2012 16:50:46 -0500 Subject: [PATCH] ifxmodem: Remove atom if driver fails to init --- drivers/ifxmodem/radio-settings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/ifxmodem/radio-settings.c b/drivers/ifxmodem/radio-settings.c index 080f7ee6..e4a09f2a 100644 --- a/drivers/ifxmodem/radio-settings.c +++ b/drivers/ifxmodem/radio-settings.c @@ -163,8 +163,10 @@ static void xrat_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); }