Skip to content

Commit 87094a0

Browse files
dtorherbertx
authored andcommitted
hwrng: octeon - 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 1ee9b5e commit 87094a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/char/hw_random/octeon-rng.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static int octeon_rng_probe(struct platform_device *pdev)
105105
return 0;
106106
}
107107

108-
static int __exit octeon_rng_remove(struct platform_device *pdev)
108+
static int octeon_rng_remove(struct platform_device *pdev)
109109
{
110110
struct hwrng *rng = platform_get_drvdata(pdev);
111111

@@ -119,7 +119,7 @@ static struct platform_driver octeon_rng_driver = {
119119
.name = "octeon_rng",
120120
},
121121
.probe = octeon_rng_probe,
122-
.remove = __exit_p(octeon_rng_remove),
122+
.remove = octeon_rng_remove,
123123
};
124124

125125
module_platform_driver(octeon_rng_driver);

0 commit comments

Comments
 (0)