diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-29 07:39:09 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-06-05 04:43:07 -0400 |
commit | d6dfd683e6b196db4cf92cf226c9f63ee66a5eb1 (patch) | |
tree | 8addbe5812540358513b87c981c8b2c1a6393c82 /drivers/crypto | |
parent | 1f539bcb13120213f266d5506fe7339bc78bd953 (diff) |
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 <sachin.kamat@linaro.org>
Tested-by: Tobias Rauter <tobiasrauter@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/dcp.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) | |||
876 | struct dcp_dev *dev; | 876 | struct dcp_dev *dev; |
877 | int j; | 877 | int j; |
878 | dev = platform_get_drvdata(pdev); | 878 | dev = platform_get_drvdata(pdev); |
879 | platform_set_drvdata(pdev, NULL); | ||
880 | 879 | ||
881 | dma_free_coherent(&pdev->dev, | 880 | dma_free_coherent(&pdev->dev, |
882 | DCP_MAX_PKG * sizeof(struct dcp_hw_packet), | 881 | DCP_MAX_PKG * sizeof(struct dcp_hw_packet), |