diff mbox

spi/rockchip: remove redundant call to spi_master_put()

Message ID 1415712171-20951-1-git-send-email-laurentiu.palcu@intel.com (mailing list archive)
State Accepted
Commit dfcc2e3549b5d57886d4ce6b4762bd4b64f6f945
Headers show

Commit Message

Laurentiu Palcu Nov. 11, 2014, 1:22 p.m. UTC
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>
---
 drivers/spi/spi-rockchip.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Mark Brown Nov. 12, 2014, 3:04 p.m. UTC | #1
On Tue, Nov 11, 2014 at 03:22:51PM +0200, Laurentiu Palcu wrote:
> The call to spi_master_put() in rockchip_spi_remove() is redundant since
> the master is registered using devm_. This patch removes it.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c
index 3afc266..e8cfe6c 100644
--- a/drivers/spi/spi-rockchip.c
+++ b/drivers/spi/spi-rockchip.c
@@ -724,8 +724,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;
 }