commit | e908949fa87c32ed97073d3e79fb7f450541cb95 | [log] [tgz] |
---|---|---|
author | Jason Glasgow <jglasgow@chromium.org> | Thu Feb 23 17:57:37 2012 -0500 |
committer | Gerrit <chrome-bot@google.com> | Tue Feb 28 08:59:15 2012 -0800 |
tree | 5bc5b1f98eb5639f9ec13de00a08007380cb9e38 | |
parent | bdd0c8bf5dfcbcc7ac57ea88545f0ad9bc25f8f7 [diff] |
shill: modem: unregister the cellular device when deleting a modem Unregister the cellular device so that the chain of refences to the device are all dropped when the modem disappears. The references are from DeviceInfo, Manager, Modem and Service. Calling deregister remove the device info reference, and will cause the manager to stop the device, which will in turn clean up the service. Deleting the modem will drop the last reference. BUG=chromium-os:26796, chromium-os:26300 TEST=run shill, list-devices, stop cromo, list-devices, start cromo, /opt/Qualcomm/bin/powercycle-all-gobis Change-Id: Ia10932cc3c644bbf5accd69e02b85c75dc783b11 Reviewed-on: https://gerrit.chromium.org/gerrit/16546 Commit-Ready: Jason Glasgow <jglasgow@chromium.org> Reviewed-by: Jason Glasgow <jglasgow@chromium.org> Tested-by: Jason Glasgow <jglasgow@chromium.org>