]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/spi/spi-txx9.c
staging: board: disable as it breaks the build
[karo-tx-linux.git] / drivers / spi / spi-txx9.c
index 820b499816f8ebfb6bc45a56026dbe05b9b4311f..5f183baa91a98bb343747eced81ae6f4e09c4536 100644 (file)
@@ -262,7 +262,8 @@ static void txx9spi_work_one(struct txx9spi *c, struct spi_message *m)
 
 exit:
        m->status = status;
-       m->complete(m->context);
+       if (m->complete)
+               m->complete(m->context);
 
        /* normally deactivate chipselect ... unless no error and
         * cs_change has hinted that the next message will probably