spi: fsl-dspi: Fix getting correct address for master
authorAxel Lin <axel.lin@ingics.com>
Fri, 14 Feb 2014 04:49:12 +0000 (12:49 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 5 Mar 2014 03:51:02 +0000 (11:51 +0800)
commit017145fef567430789e40f6a22a90ce2a766370b
treed827a156c9f6defa5d1934df1dafce6b7c5534ce
parent38dbfb59d1175ef458d006556061adeaa8751b72
spi: fsl-dspi: Fix getting correct address for master

Current code set platform drvdata to dspi. However, the code in dspi_suspend()
and dspi_resume() assumes the drvdata is the address of master.
Fix it by setting platform drvdata to master.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-fsl-dspi.c