commit | b1a8e78d173081c303bea88e92a1e1423befca63 | [log] [tgz] |
---|---|---|
author | Tomasz Figa <tomasz.figa@gmail.com> | Sun Aug 11 02:33:28 2013 +0200 |
committer | Mark Brown <broonie@linaro.org> | Sun Aug 11 14:06:30 2013 +0100 |
tree | 6d4b0b1207a78c9525d18d56e7c80055f7dd738c | |
parent | b998aca8ade221d592c8fc6b00687f2c4034d918 [diff] |
spi: s3c64xx: Zero dma_slave_config struct in prepare_dma() Not all fields of dma_slave_config struct are being initialized by prepare_dma() function, leaving those which are not in undefined state, which can confuse DMA drivers using them. This patch adds call to memset() to zero the struct before initializing a subset of its fields. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>