spi: davinci: Initialize dspi->done before any possible use of it
authorMichele Dionisio <michele.dionisio@gmail.com>
Tue, 12 Dec 2017 10:36:59 +0000 (11:36 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 12 Dec 2017 10:51:52 +0000 (10:51 +0000)
commit87248dc79236575908568810a61e0953f738516f
tree7f5144f0c479a4ce0b6bc4e526ebec459ebf4947
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
spi: davinci: Initialize dspi->done before any possible use of it

On SOC with multiple cpu (like omal l138) it is possible that spi
periferic is already initialized when this module is loaded and so
it is possible to recieve interrupt when the modules is not fully
initialized.

this patch initialize dspi->done before refister the interrupt
handler that use it

Signed-off-by: Michele Dionisio <michele.dionisio@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-davinci.c