Skip to content

Commit 1eb8a1b

Browse files
dtorherbertx
authored andcommitted
crypto: amcc - remove incorrect __init/__exit markups
Even if bus is not hot-pluggable, the devices can be bound and unbound from the driver via sysfs, so we should not be using __init/__exit annotations on probe() and 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 83ce01d commit 1eb8a1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/crypto/amcc/crypto4xx_core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ struct crypto4xx_alg_common crypto4xx_alg[] = {
11551155
/**
11561156
* Module Initialization Routine
11571157
*/
1158-
static int __init crypto4xx_probe(struct platform_device *ofdev)
1158+
static int crypto4xx_probe(struct platform_device *ofdev)
11591159
{
11601160
int rc;
11611161
struct resource res;
@@ -1263,7 +1263,7 @@ static int __init crypto4xx_probe(struct platform_device *ofdev)
12631263
return rc;
12641264
}
12651265

1266-
static int __exit crypto4xx_remove(struct platform_device *ofdev)
1266+
static int crypto4xx_remove(struct platform_device *ofdev)
12671267
{
12681268
struct device *dev = &ofdev->dev;
12691269
struct crypto4xx_core_device *core_dev = dev_get_drvdata(dev);
@@ -1291,7 +1291,7 @@ static struct platform_driver crypto4xx_driver = {
12911291
.of_match_table = crypto4xx_match,
12921292
},
12931293
.probe = crypto4xx_probe,
1294-
.remove = __exit_p(crypto4xx_remove),
1294+
.remove = crypto4xx_remove,
12951295
};
12961296

12971297
module_platform_driver(crypto4xx_driver);

0 commit comments

Comments
 (0)