]> git.baikalelectronics.ru Git - kernel.git/commit
spi: rspi: use platform drvdata correctly in rspi_remove()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 15 Nov 2013 07:44:02 +0000 (15:44 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 15 Nov 2013 10:24:00 +0000 (10:24 +0000)
commit8592726095f43d2f3ab26352fee2ba27e06fd77f
tree02c636ce7f86c2f52860ca8da245c82c438685fe
parent4ff49c9dae1d87cad1230f07b0fd29e7ee86a167
spi: rspi: use platform drvdata correctly in rspi_remove()

We had set the platform drvdata in rspi_probe() as a type of
struct rspi_data, but use it as struct spi_master in rspi_remove()
Fix by remove the unnecessary spi_master_[get|put]() since rspi->master
is no longer used after spi_unregister_master().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-rspi.c