Skip to contentSkip to conversation

mei: remove check on pm_runtime_active in __mei_cl_disconnect

char-misc-next Tomas Winkler 1 participant 1 message Aug 4, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Remove bogus check on pm_runtime_active that prevented disconnection from a client in case the device was resuming from power gating but not yet active.

Fix regression introduced by
18901357e70ae29e3fd1c58712a6847c2ae52eae
mei: disconnect on connection request timeout

---
 drivers/misc/mei/client.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/misc/mei/client.c +0 -3
index 5fcd70bcdf96..a6c87c713193 100644
@@ -853,9 +853,6 @@ static int __mei_cl_disconnect(struct mei_cl *cl)
 
 	dev = cl->dev;
 
-	if (WARN_ON(!pm_runtime_active(dev->dev)))
-		return -EFAULT;
-
 	cl->state = MEI_FILE_DISCONNECTING;
 
 	cb = mei_io_cb_init(cl, MEI_FOP_DISCONNECT, NULL);
Signature · 1 line
2.4.3