Skip to content

Commit 1ee9b5e

Browse files
dtorherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 007ee8d commit 1ee9b5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/char/hw_random/omap-rng.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static int omap_rng_probe(struct platform_device *pdev)
408408
return ret;
409409
}
410410

411-
static int __exit omap_rng_remove(struct platform_device *pdev)
411+
static int omap_rng_remove(struct platform_device *pdev)
412412
{
413413
struct omap_rng_dev *priv = platform_get_drvdata(pdev);
414414

@@ -460,7 +460,7 @@ static struct platform_driver omap_rng_driver = {
460460
.of_match_table = of_match_ptr(omap_rng_of_match),
461461
},
462462
.probe = omap_rng_probe,
463-
.remove = __exit_p(omap_rng_remove),
463+
.remove = omap_rng_remove,
464464
};
465465

466466
module_platform_driver(omap_rng_driver);

0 commit comments

Comments
 (0)