NFC: mei: Do not disable MEI devices from their remove routine
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 30 Apr 2013 21:50:29 +0000 (23:50 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 21 May 2013 08:48:41 +0000 (10:48 +0200)
Enabling and disabling device is exclusively handled by the mei_phy_ops.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/microread/mei.c
drivers/nfc/pn544/mei.c

index 51d44fb..cdf1bc5 100644 (file)
@@ -63,8 +63,6 @@ static int microread_mei_remove(struct mei_cl_device *device)
 
        microread_remove(phy->hdev);
 
-       nfc_mei_phy_disable(phy);
-
        nfc_mei_phy_free(phy);
 
        return 0;
index 50cef3a..b5d3d18 100644 (file)
@@ -63,8 +63,6 @@ static int pn544_mei_remove(struct mei_cl_device *device)
 
        pn544_hci_remove(phy->hdev);
 
-       nfc_mei_phy_disable(phy);
-
        nfc_mei_phy_free(phy);
 
        return 0;