diff mbox

[RESEND,1/2] spi: qup: Remove spi_master_put in spi_qup_remove

Message ID 1392946396.11510.1.camel@phoenix (mailing list archive)
State Accepted
Headers show

Commit Message

Axel Lin Feb. 21, 2014, 1:33 a.m. UTC
This driver uses devm_spi_register_master() so don't explicitly call
spi_master_put() in spi_qup_remove().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/spi/spi-qup.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Mark Brown Feb. 23, 2014, 3:28 a.m. UTC | #1
On Fri, Feb 21, 2014 at 09:33:16AM +0800, Axel Lin wrote:
> This driver uses devm_spi_register_master() so don't explicitly call
> spi_master_put() in spi_qup_remove().

Applied both, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c
index b0bcc09..5edc56f 100644
--- a/drivers/spi/spi-qup.c
+++ b/drivers/spi/spi-qup.c
@@ -802,7 +802,6 @@  static int spi_qup_remove(struct platform_device *pdev)
 
 	pm_runtime_put_noidle(&pdev->dev);
 	pm_runtime_disable(&pdev->dev);
-	spi_master_put(master);
 	return 0;
 }