Message ID | 1448632564-2381-2-git-send-email-kernel@martin.sperl.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 49ddedf3bfcb59a562c7db0e50aecd1422e9cdc9 |
Headers | show |
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index cce80e6..4c54d47 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -762,10 +762,15 @@ struct spi_message { void *state; }; +static inline void spi_message_init_no_memset(struct spi_message *m) +{ + INIT_LIST_HEAD(&m->transfers); +} + static inline void spi_message_init(struct spi_message *m) { memset(m, 0, sizeof *m); - INIT_LIST_HEAD(&m->transfers); + spi_message_init_no_memset(m); } static inline void