Skip to content

Commit f51c527

Browse files
ukleinekherbertx
authored andcommitted
crypto: drivers - Switch back to struct platform_driver::remove()
After commit 0edb555 ("platform: Make platform_driver::remove() return void") .remove() is (again) the right callback to implement for platform drivers. Convert all platform drivers below drivers/crypto to use .remove(), with the eventual goal to drop struct platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 7019935 commit f51c527

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+46
-46
lines changed

drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ MODULE_DEVICE_TABLE(of, a20ss_crypto_of_match_table);
542542

543543
static struct platform_driver sun4i_ss_driver = {
544544
.probe = sun4i_ss_probe,
545-
.remove_new = sun4i_ss_remove,
545+
.remove = sun4i_ss_remove,
546546
.driver = {
547547
.name = "sun4i-ss",
548548
.pm = &sun4i_ss_pm_ops,

drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ MODULE_DEVICE_TABLE(of, sun8i_ce_crypto_of_match_table);
11291129

11301130
static struct platform_driver sun8i_ce_driver = {
11311131
.probe = sun8i_ce_probe,
1132-
.remove_new = sun8i_ce_remove,
1132+
.remove = sun8i_ce_remove,
11331133
.driver = {
11341134
.name = "sun8i-ce",
11351135
.pm = &sun8i_ce_pm_ops,

drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ MODULE_DEVICE_TABLE(of, sun8i_ss_crypto_of_match_table);
929929

930930
static struct platform_driver sun8i_ss_driver = {
931931
.probe = sun8i_ss_probe,
932-
.remove_new = sun8i_ss_remove,
932+
.remove = sun8i_ss_remove,
933933
.driver = {
934934
.name = "sun8i-ss",
935935
.pm = &sun8i_ss_pm_ops,

drivers/crypto/amcc/crypto4xx_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ static struct platform_driver crypto4xx_driver = {
14971497
.of_match_table = crypto4xx_match,
14981498
},
14991499
.probe = crypto4xx_probe,
1500-
.remove_new = crypto4xx_remove,
1500+
.remove = crypto4xx_remove,
15011501
};
15021502

15031503
module_platform_driver(crypto4xx_driver);

drivers/crypto/amlogic/amlogic-gxl-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ MODULE_DEVICE_TABLE(of, meson_crypto_of_match_table);
320320

321321
static struct platform_driver meson_crypto_driver = {
322322
.probe = meson_crypto_probe,
323-
.remove_new = meson_crypto_remove,
323+
.remove = meson_crypto_remove,
324324
.driver = {
325325
.name = "gxl-crypto",
326326
.of_match_table = meson_crypto_of_match_table,

drivers/crypto/aspeed/aspeed-acry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ MODULE_DEVICE_TABLE(of, aspeed_acry_of_matches);
806806

807807
static struct platform_driver aspeed_acry_driver = {
808808
.probe = aspeed_acry_probe,
809-
.remove_new = aspeed_acry_remove,
809+
.remove = aspeed_acry_remove,
810810
.driver = {
811811
.name = KBUILD_MODNAME,
812812
.of_match_table = aspeed_acry_of_matches,

drivers/crypto/aspeed/aspeed-hace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ MODULE_DEVICE_TABLE(of, aspeed_hace_of_matches);
266266

267267
static struct platform_driver aspeed_hace_driver = {
268268
.probe = aspeed_hace_probe,
269-
.remove_new = aspeed_hace_remove,
269+
.remove = aspeed_hace_remove,
270270
.driver = {
271271
.name = KBUILD_MODNAME,
272272
.of_match_table = aspeed_hace_of_matches,

drivers/crypto/atmel-aes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ static void atmel_aes_remove(struct platform_device *pdev)
24532453

24542454
static struct platform_driver atmel_aes_driver = {
24552455
.probe = atmel_aes_probe,
2456-
.remove_new = atmel_aes_remove,
2456+
.remove = atmel_aes_remove,
24572457
.driver = {
24582458
.name = "atmel_aes",
24592459
.of_match_table = atmel_aes_dt_ids,

drivers/crypto/atmel-sha.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2691,7 +2691,7 @@ static void atmel_sha_remove(struct platform_device *pdev)
26912691

26922692
static struct platform_driver atmel_sha_driver = {
26932693
.probe = atmel_sha_probe,
2694-
.remove_new = atmel_sha_remove,
2694+
.remove = atmel_sha_remove,
26952695
.driver = {
26962696
.name = "atmel_sha",
26972697
.of_match_table = atmel_sha_dt_ids,

drivers/crypto/atmel-tdes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ static void atmel_tdes_remove(struct platform_device *pdev)
10741074

10751075
static struct platform_driver atmel_tdes_driver = {
10761076
.probe = atmel_tdes_probe,
1077-
.remove_new = atmel_tdes_remove,
1077+
.remove = atmel_tdes_remove,
10781078
.driver = {
10791079
.name = "atmel_tdes",
10801080
.of_match_table = atmel_tdes_dt_ids,

0 commit comments

Comments
 (0)