aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-txx9.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-txx9.c')
-rw-r--r--drivers/spi/spi-txx9.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-txx9.c b/drivers/spi/spi-txx9.c
index 820b499816f8..5f183baa91a9 100644
--- a/drivers/spi/spi-txx9.c
+++ b/drivers/spi/spi-txx9.c
@@ -262,7 +262,8 @@ static void txx9spi_work_one(struct txx9spi *c, struct spi_message *m)
262 262
263exit: 263exit:
264 m->status = status; 264 m->status = status;
265 m->complete(m->context); 265 if (m->complete)
266 m->complete(m->context);
266 267
267 /* normally deactivate chipselect ... unless no error and 268 /* normally deactivate chipselect ... unless no error and
268 * cs_change has hinted that the next message will probably 269 * cs_change has hinted that the next message will probably