Rework ofono_modem_remove_atom

Change to ofono_atom_free since the atom now carries all necessary
information about the modem it is attached to
This commit is contained in:
Denis Kenzior 2009-08-14 15:38:42 -05:00
parent 9020b1dc7e
commit 6119c08c28
2 changed files with 3 additions and 6 deletions

View File

@ -180,11 +180,9 @@ struct ofono_atom *__ofono_modem_find_atom(struct ofono_modem *modem,
return NULL;
}
void __ofono_modem_remove_atom(struct ofono_modem *modem,
struct ofono_atom *atom)
void __ofono_atom_free(struct ofono_atom *atom)
{
if (modem == NULL)
return;
struct ofono_modem *modem = atom->modem;
modem->atoms = g_slist_remove(modem->atoms, atom);

View File

@ -123,8 +123,7 @@ void __ofono_atom_register(struct ofono_atom *atom,
void (*unregister)(struct ofono_atom *));
void __ofono_atom_unregister(struct ofono_atom *atom);
void __ofono_modem_remove_atom(struct ofono_modem *modem,
struct ofono_atom *atom);
void __ofono_atom_free(struct ofono_atom *atom);
#include <ofono/call-barring.h>
#include <ofono/call-forwarding.h>