Disable technology when removing device
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 13 Aug 2010 17:41:29 +0000 (19:41 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 13 Aug 2010 17:41:29 +0000 (19:41 +0200)
commitfb9d3d9033e275954789535579a67ee8272c9b9b
tree57e349352d95f74da879353dd10634b97051cfd2
parent8a657597fccc50976f934a2734a7e23ab849b2e0
Disable technology when removing device

If device_disable() returns being in progress, the technology has to be
disabled. Some technologies like 3G will call remove_device directly when
unplugging a modem and without disabling the corresponding technology,
the notifier enabled refcounts will get out pf sync.
src/device.c
src/technology.c