summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/init.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2014-02-17 14:13:19 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-18 19:04:35 +0100
commit487056932d372cc4f6c636f21a928d6667b151d7 (patch)
treeeba69647e4de95664345f76bdc984aa5c2f86032 /drivers/misc/mei/init.c
parentMerge 3.14-rc3 into char-misc-next (diff)
downloadlinux-487056932d372cc4f6c636f21a928d6667b151d7.tar.xz
linux-487056932d372cc4f6c636f21a928d6667b151d7.zip
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.c2
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)
mei_nfc_host_exit(dev);
+ mei_cl_bus_remove_devices(dev);
+
mutex_lock(&dev->device_lock);
mei_wd_stop(dev);