aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-03-09 13:36:35 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-03-11 10:11:05 -0400
commit1ee9b5e4712948973f0065d944b1afeb50b4dccd (patch)
tree6ebc9296bd824bb5e145cc68994559e078cd83c0 /drivers/char/hw_random
parent007ee8dec6843b3b491a4bb42320c0eb8e884f72 (diff)
hwrng: omap - remove incorrect __exit markups
Even if bus is not hot-pluggable, the devices can be unbound from the driver via sysfs, so we should not be using __exit annotations on remove() methods. The only exception is drivers registered with platform_driver_probe() which specifically disables sysfs bind/unbind attributes. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r--drivers/char/hw_random/omap-rng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c
index d14dcf788f17..7f3597d2a8ac 100644
--- a/drivers/char/hw_random/omap-rng.c
+++ b/drivers/char/hw_random/omap-rng.c
@@ -408,7 +408,7 @@ err_ioremap:
408 return ret; 408 return ret;
409} 409}
410 410
411static int __exit omap_rng_remove(struct platform_device *pdev) 411static int omap_rng_remove(struct platform_device *pdev)
412{ 412{
413 struct omap_rng_dev *priv = platform_get_drvdata(pdev); 413 struct omap_rng_dev *priv = platform_get_drvdata(pdev);
414 414
@@ -460,7 +460,7 @@ static struct platform_driver omap_rng_driver = {
460 .of_match_table = of_match_ptr(omap_rng_of_match), 460 .of_match_table = of_match_ptr(omap_rng_of_match),
461 }, 461 },
462 .probe = omap_rng_probe, 462 .probe = omap_rng_probe,
463 .remove = __exit_p(omap_rng_remove), 463 .remove = omap_rng_remove,
464}; 464};
465 465
466module_platform_driver(omap_rng_driver); 466module_platform_driver(omap_rng_driver);