diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-12-21 02:22:28 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-12-30 07:19:15 -0500 |
commit | 2be9d96b27745c781a9457cb353f835ab60d40e8 (patch) | |
tree | 263a7b68feaece5a5be89a79a7a10d655fed637a /drivers/crypto/amcc | |
parent | 4e6e0b272d5af0c9c4f4215248130e58d68bcf0f (diff) |
crypto: crypto4xx - Remove redundant dev_set_drvdata
Driver core sets it to NULL upon probe failure or release.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/amcc')
-rw-r--r-- | drivers/crypto/amcc/crypto4xx_core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/crypto/amcc/crypto4xx_core.c b/drivers/crypto/amcc/crypto4xx_core.c index efaf6302405f..37f9cc98ba17 100644 --- a/drivers/crypto/amcc/crypto4xx_core.c +++ b/drivers/crypto/amcc/crypto4xx_core.c | |||
@@ -724,7 +724,6 @@ static void crypto4xx_stop_all(struct crypto4xx_core_device *core_dev) | |||
724 | crypto4xx_destroy_pdr(core_dev->dev); | 724 | crypto4xx_destroy_pdr(core_dev->dev); |
725 | crypto4xx_destroy_gdr(core_dev->dev); | 725 | crypto4xx_destroy_gdr(core_dev->dev); |
726 | crypto4xx_destroy_sdr(core_dev->dev); | 726 | crypto4xx_destroy_sdr(core_dev->dev); |
727 | dev_set_drvdata(core_dev->device, NULL); | ||
728 | iounmap(core_dev->dev->ce_base); | 727 | iounmap(core_dev->dev->ce_base); |
729 | kfree(core_dev->dev); | 728 | kfree(core_dev->dev); |
730 | kfree(core_dev); | 729 | kfree(core_dev); |