mei: Remove all bus devices from the mei_dev list when stopping the MEI
[firefly-linux-kernel-4.4.55.git] / drivers / misc / mei / init.c
index 214dcef9750a4853cc03fc4b0d904be5096cbace..4460975c0eefcc97c765dd83fcafc0a3f3290cd3 100644 (file)
@@ -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);