From: Sachin Kamat Date: Wed, 29 May 2013 11:39:09 +0000 (+0530) Subject: crypto: dcp - Remove redundant platform_set_drvdata() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d6dfd683e6b196db4cf92cf226c9f63ee66a5eb1;p=linux-beck.git 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 --- diff --git a/drivers/crypto/dcp.c b/drivers/crypto/dcp.c index eea194c34527..83eaefcefb64 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),