mei: Remove all bus devices from the mei_dev list when stopping the MEI
[firefly-linux-kernel-4.4.55.git] / drivers / misc / mei / nfc.c
index a58320c0c049c7342ca3d912e4f427bd487381de..7626dde5e1f53cae64b9e4a76d3a9b089a917ff0 100644 (file)
@@ -552,13 +552,7 @@ err:
 void mei_nfc_host_exit(struct mei_device *dev)
 {
        struct mei_nfc_dev *ndev = &nfc_dev;
-
        cancel_work_sync(&ndev->init_work);
+}
 
-       mutex_lock(&dev->device_lock);
-       if (ndev->cl && ndev->cl->device)
-               mei_cl_remove_device(ndev->cl->device);
 
-       mei_nfc_free(ndev);
-       mutex_unlock(&dev->device_lock);
-}