diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-03-09 16:35:39 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-03-11 10:11:07 -0400 |
commit | 1eb8a1b340e2f0a562b4987683bbaee4d620bf0a (patch) | |
tree | 418500c17405981910986b80497c0d70ff683b0f /drivers/crypto | |
parent | 83ce01d24a1998cf1be6a7ea37f54edf264abe93 (diff) |
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 <dmitry.torokhov@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/amcc/crypto4xx_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/crypto/amcc/crypto4xx_core.c b/drivers/crypto/amcc/crypto4xx_core.c index d02b77150070..3b28e8c3de28 100644 --- a/drivers/crypto/amcc/crypto4xx_core.c +++ b/drivers/crypto/amcc/crypto4xx_core.c | |||
@@ -1155,7 +1155,7 @@ struct crypto4xx_alg_common crypto4xx_alg[] = { | |||
1155 | /** | 1155 | /** |
1156 | * Module Initialization Routine | 1156 | * Module Initialization Routine |
1157 | */ | 1157 | */ |
1158 | static int __init crypto4xx_probe(struct platform_device *ofdev) | 1158 | static int crypto4xx_probe(struct platform_device *ofdev) |
1159 | { | 1159 | { |
1160 | int rc; | 1160 | int rc; |
1161 | struct resource res; | 1161 | struct resource res; |
@@ -1263,7 +1263,7 @@ err_alloc_dev: | |||
1263 | return rc; | 1263 | return rc; |
1264 | } | 1264 | } |
1265 | 1265 | ||
1266 | static int __exit crypto4xx_remove(struct platform_device *ofdev) | 1266 | static int crypto4xx_remove(struct platform_device *ofdev) |
1267 | { | 1267 | { |
1268 | struct device *dev = &ofdev->dev; | 1268 | struct device *dev = &ofdev->dev; |
1269 | struct crypto4xx_core_device *core_dev = dev_get_drvdata(dev); | 1269 | struct crypto4xx_core_device *core_dev = dev_get_drvdata(dev); |
@@ -1291,7 +1291,7 @@ static struct platform_driver crypto4xx_driver = { | |||
1291 | .of_match_table = crypto4xx_match, | 1291 | .of_match_table = crypto4xx_match, |
1292 | }, | 1292 | }, |
1293 | .probe = crypto4xx_probe, | 1293 | .probe = crypto4xx_probe, |
1294 | .remove = __exit_p(crypto4xx_remove), | 1294 | .remove = crypto4xx_remove, |
1295 | }; | 1295 | }; |
1296 | 1296 | ||
1297 | module_platform_driver(crypto4xx_driver); | 1297 | module_platform_driver(crypto4xx_driver); |