]> git.hungrycats.org Git - linux/commitdiff
Revert "mei: bus: move driver api functions at the start of the file"
authorSasha Levin <sasha.levin@oracle.com>
Wed, 4 May 2016 15:43:55 +0000 (11:43 -0400)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 8 May 2016 12:08:56 +0000 (08:08 -0400)
This reverts commit 79b768dec5d354aeb143f51db11e0cbb758176fb.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/misc/mei/bus.c

index 883ba74fbc1e1df49728e1c732bf7b530ef470d4..4cf38c39878aa1787de6cb36cf2a5c045f01b875 100644 (file)
@@ -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)