spi: spi-fsl-dspi: Initialize completion before possible interrupt
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 22 Jun 2020 11:05:43 +0000 (13:05 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 Jun 2020 12:50:29 +0000 (13:50 +0100)
commitf148915f91fccd8c3df1b0bff7d1c8458cad3be5
tree1142cd59f6663af0bcced6e65772a83f4d90095b
parent3d87b613d6a3c6f0980e877ab0895785a2dde581
spi: spi-fsl-dspi: Initialize completion before possible interrupt

The interrupt handler calls completion and is IRQ requested before the
completion is initialized.  Logically it should be the other way.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200622110543.5035-4-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c