diff options
author | Wei Yongjun <weiyj.lk@gmail.com> | 2016-07-26 16:56:50 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-07-27 20:00:16 +0200 |
commit | c2b08cede727387a5e19b40fa8e1a1e3a53e8527 (patch) | |
tree | 076f6cc2f8c9bf1014eb786688dcbe4a0f6c08bd /drivers/spi/spi-mt65xx.c | |
parent | spi: qup: Remove spi_master_put in spi_qup_remove() (diff) | |
download | linux-c2b08cede727387a5e19b40fa8e1a1e3a53e8527.tar.xz linux-c2b08cede727387a5e19b40fa8e1a1e3a53e8527.zip |
spi: mediatek: remove spi_master_put in mtk_spi_remove()
The call to spi_master_put() in mtk_spi_remove() is redundant since
the master is registered using devm_spi_register_master() and no
reference hold by using spi_master_get() in mtk_spi_remove().
This is detected by Coccinelle semantic patch.
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-mt65xx.c')
-rw-r--r-- | drivers/spi/spi-mt65xx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 0be89e052428..899d7a8f0889 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi-mt65xx.c @@ -685,7 +685,6 @@ static int mtk_spi_remove(struct platform_device *pdev) pm_runtime_disable(&pdev->dev); mtk_spi_reset(mdata); - spi_master_put(master); return 0; } |