diff options
author | Sasha Levin <sasha.levin@oracle.com> | 2016-05-04 11:43:55 -0400 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2016-05-08 08:08:56 -0400 |
commit | 183c7c8e973b01358799d1718f67dd3a94451a59 (patch) | |
tree | f1a18b98f38e7e000f7d83debc5d8814897deeb6 /drivers | |
parent | 54419e3efcd6677e4b0841666e2fc605d2e5df86 (diff) |
Revert "mei: bus: move driver api functions at the start of the file"
This reverts commit 79b768dec5d354aeb143f51db11e0cbb758176fb.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/mei/bus.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index 883ba74fbc1e..4cf38c39878a 100644 --- a/drivers/misc/mei/bus.c +++ b/drivers/misc/mei/bus.c @@ -238,11 +238,6 @@ static ssize_t ___mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length, dev = cl->dev; mutex_lock(&dev->device_lock); - if (dev->dev_state != MEI_DEV_ENABLED) { - rets = -ENODEV; - goto out; - } - if (!mei_cl_is_connected(cl)) { rets = -ENODEV; goto out; @@ -292,10 +287,6 @@ ssize_t __mei_cl_recv(struct mei_cl *cl, u8 *buf, size_t length) dev = cl->dev; mutex_lock(&dev->device_lock); - if (dev->dev_state != MEI_DEV_ENABLED) { - rets = -ENODEV; - goto out; - } cb = mei_cl_read_cb(cl, NULL); if (cb) |