Commit d6dfd683 authored by Sachin Kamat's avatar Sachin Kamat Committed by Herbert Xu

crypto: dcp - Remove redundant platform_set_drvdata()

Commit 0998d063 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Tested-by: default avatarTobias Rauter <tobiasrauter@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1f539bcb
...@@ -876,7 +876,6 @@ static int dcp_remove(struct platform_device *pdev) ...@@ -876,7 +876,6 @@ static int dcp_remove(struct platform_device *pdev)
struct dcp_dev *dev; struct dcp_dev *dev;
int j; int j;
dev = platform_get_drvdata(pdev); dev = platform_get_drvdata(pdev);
platform_set_drvdata(pdev, NULL);
dma_free_coherent(&pdev->dev, dma_free_coherent(&pdev->dev,
DCP_MAX_PKG * sizeof(struct dcp_hw_packet), DCP_MAX_PKG * sizeof(struct dcp_hw_packet),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment