summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-rockchip.c
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2014-11-11 14:22:51 +0100
committerMark Brown <broonie@kernel.org>2014-11-12 16:04:18 +0100
commitdfcc2e3549b5d57886d4ce6b4762bd4b64f6f945 (patch)
tree2ab6e7cb0a62e51ff12af29af2e39ba4dec5f5db /drivers/spi/spi-rockchip.c
parentLinux 3.18-rc1 (diff)
downloadlinux-dfcc2e3549b5d57886d4ce6b4762bd4b64f6f945.tar.xz
linux-dfcc2e3549b5d57886d4ce6b4762bd4b64f6f945.zip
spi/rockchip: remove redundant call to spi_master_put()
The call to spi_master_put() in rockchip_spi_remove() is redundant since the master is registered using devm_. This patch removes it. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-rockchip.c')
-rw-r--r--drivers/spi/spi-rockchip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c
index f96ea8a38d64..08897d34ce33 100644
--- a/drivers/spi/spi-rockchip.c
+++ b/drivers/spi/spi-rockchip.c
@@ -723,8 +723,6 @@ static int rockchip_spi_remove(struct platform_device *pdev)
if (rs->dma_rx.ch)
dma_release_channel(rs->dma_rx.ch);
- spi_master_put(master);
-
return 0;
}