From d6dfd683e6b196db4cf92cf226c9f63ee66a5eb1 Mon Sep 17 00:00:00 2001 From: Sachin Kamat Date: Wed, 29 May 2013 17:09:09 +0530 Subject: crypto: dcp - Remove redundant platform_set_drvdata() Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat Tested-by: Tobias Rauter Signed-off-by: Herbert Xu --- drivers/crypto/dcp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/dcp.c b/drivers/crypto/dcp.c index eea194c3452..83eaefcefb6 100644 --- a/drivers/crypto/dcp.c +++ b/drivers/crypto/dcp.c @@ -876,7 +876,6 @@ static int dcp_remove(struct platform_device *pdev) struct dcp_dev *dev; int j; dev = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); dma_free_coherent(&pdev->dev, DCP_MAX_PKG * sizeof(struct dcp_hw_packet), -- cgit v1.2.3