]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: Do not require a completion
authorMark Brown <broonie@linaro.org>
Tue, 25 Mar 2014 19:28:22 +0000 (19:28 +0000)
committerMark Brown <broonie@linaro.org>
Tue, 25 Mar 2014 19:30:06 +0000 (19:30 +0000)
There is no real reason why we require transfers to have a completion and
the only user of the completion now checks to see if one has been provided
before using it so stop enforcing this. This makes it more convenient for
drivers to chain multiple asynchronous transfers together.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi.c

index 38e1c315bb1326d48ff301cbe58c78440d1a4c90..d94782340b4748c8aaaa2c2b5b83f93554ea4f24 100644 (file)
@@ -1621,8 +1621,6 @@ static int __spi_validate(struct spi_device *spi, struct spi_message *message)
 
        if (list_empty(&message->transfers))
                return -EINVAL;
-       if (!message->complete)
-               return -EINVAL;
 
        /* Half-duplex links include original MicroWire, and ones with
         * only one data pin like SPI_3WIRE (switches direction) or where