diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-11-11 15:22:51 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-12 15:04:18 +0000 |
commit | dfcc2e3549b5d57886d4ce6b4762bd4b64f6f945 (patch) | |
tree | 2ab6e7cb0a62e51ff12af29af2e39ba4dec5f5db /drivers/spi | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
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')
-rw-r--r-- | drivers/spi/spi-rockchip.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index f96ea8a38d6..08897d34ce3 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; } |