aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/base/regmap/regmap-spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-spi.c b/drivers/base/regmap/regmap-spi.c
index 4c506bd940f3..37f12ae7aada 100644
--- a/drivers/base/regmap/regmap-spi.c
+++ b/drivers/base/regmap/regmap-spi.c
@@ -73,7 +73,8 @@ static int regmap_spi_async_write(void *context,
73 73
74 spi_message_init(&async->m); 74 spi_message_init(&async->m);
75 spi_message_add_tail(&async->t[0], &async->m); 75 spi_message_add_tail(&async->t[0], &async->m);
76 spi_message_add_tail(&async->t[1], &async->m); 76 if (val)
77 spi_message_add_tail(&async->t[1], &async->m);
77 78
78 async->m.complete = regmap_spi_complete; 79 async->m.complete = regmap_spi_complete;
79 async->m.context = async; 80 async->m.context = async;