Skip to content

Commit

Permalink
hwrng: tx4939 - remove unnecessary platform_set_drvdata()
Browse files Browse the repository at this point in the history
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d06
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Jingoo Han authored and Herbert Xu committed May 24, 2013
1 parent 08d63a2 commit 1ef997d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/char/hw_random/tx4939-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ static int __exit tx4939_rng_remove(struct platform_device *dev)
struct tx4939_rng *rngdev = platform_get_drvdata(dev);

hwrng_unregister(&rngdev->rng);
platform_set_drvdata(dev, NULL);
return 0;
}

Expand Down

0 comments on commit 1ef997d

Please sign in to comment.