spi: ti-qspi: Fix getting correct address for qspi
authorAxel Lin <axel.lin@ingics.com>
Tue, 7 Jan 2014 11:04:03 +0000 (19:04 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 7 Jan 2014 11:38:00 +0000 (11:38 +0000)
commite3d8bee38543b1f3e6731916c4f11bea4d9f760f
tree8cc2d2fc15e5bff0dfacdd320bb9f5cf1d3cb333
parentf17414c4fcf138740dbbd463171101026b6f78de
spi: ti-qspi: Fix getting correct address for qspi

Now platform_get_drvdata() returns the address of qspi rather than master.
Also drop unneeded spi_unregister_master() call in ti_qspi_remove() because
we use devm_spi_register_master() in probe.

commit cbcabb7a300b "spi/qspi: Fix qspi remove path" assumes
platform_get_drvdata() returns address of master. However,
commit 160a061301c7 "spi/qspi: set correct platform drvdata in ti_qspi_probe()"
pass qspi to platform_set_drvdata().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-ti-qspi.c