diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2014-02-17 08:13:19 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-18 13:04:35 -0500 |
commit | 487056932d372cc4f6c636f21a928d6667b151d7 (patch) | |
tree | eba69647e4de95664345f76bdc984aa5c2f86032 /drivers/misc/mei/init.c | |
parent | ba4b60e85d6c5fc2242fd24e131a47fb922e5d89 (diff) |
mei: Remove all bus devices from the mei_dev list when stopping the MEI
When stopping the MEI, we should remove and potentially unregister
all bus devices queued on the mei_dev linked list.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/init.c')
-rw-r--r-- | drivers/misc/mei/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index 214dcef9750a..4460975c0eef 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c | |||
@@ -288,6 +288,8 @@ void mei_stop(struct mei_device *dev) | |||
288 | 288 | ||
289 | mei_nfc_host_exit(dev); | 289 | mei_nfc_host_exit(dev); |
290 | 290 | ||
291 | mei_cl_bus_remove_devices(dev); | ||
292 | |||
291 | mutex_lock(&dev->device_lock); | 293 | mutex_lock(&dev->device_lock); |
292 | 294 | ||
293 | mei_wd_stop(dev); | 295 | mei_wd_stop(dev); |