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)
committerJiri Slaby <jslaby@suse.cz>
Sat, 22 Mar 2014 21:01:58 +0000 (22:01 +0100)
commitc9381cae8a2072c53bea7cd87c5ec517a1545121
treed8c75d079fb1f7e93bcf7dfcd4e4640e5b41f69e
parent4a0e004916ab80a3608e54f895af21d08ab36d08
spi: fsl-dspi: Fix getting correct address for master

commit 017145fef567430789e40f6a22a90ce2a766370b upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/spi/spi-fsl-dspi.c