sim900: Fix disable cleanup procedure

This commit is contained in:
Denis Kenzior 2013-03-26 10:53:41 -05:00
parent 32cece7b09
commit 93ac1669a0
1 changed files with 1 additions and 7 deletions

View File

@ -311,11 +311,7 @@ static void cfun_disable(gboolean ok, GAtResult *result, gpointer user_data)
DBG("");
g_at_mux_shutdown(data->mux);
g_at_mux_unref(data->mux);
g_at_chat_unref(data->dlcs[SETUP_DLC]);
data->dlcs[SETUP_DLC] = NULL;
shutdown_device(data);
if (ok)
ofono_modem_set_powered(modem, FALSE);
@ -330,8 +326,6 @@ static int sim900_disable(struct ofono_modem *modem)
g_at_chat_send(data->dlcs[SETUP_DLC], "AT+CFUN=4", none_prefix,
cfun_disable, modem, NULL);
shutdown_device(data);
return -EINPROGRESS;
}