crypto: drivers - Switch back to struct platform_driver::remove()
After commit 0edb555a65 ("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>
This commit is contained in:
committed by
Herbert Xu
parent
7019935990
commit
f51c527f17
@@ -1588,7 +1588,7 @@ static const struct of_device_id ixp4xx_crypto_of_match[] = {
|
||||
|
||||
static struct platform_driver ixp_crypto_driver = {
|
||||
.probe = ixp_crypto_probe,
|
||||
.remove_new = ixp_crypto_remove,
|
||||
.remove = ixp_crypto_remove,
|
||||
.driver = {
|
||||
.name = "ixp4xx_crypto",
|
||||
.of_match_table = ixp4xx_crypto_of_match,
|
||||
|
||||
@@ -1656,7 +1656,7 @@ list_del:
|
||||
/* The OCS driver is a platform device. */
|
||||
static struct platform_driver kmb_ocs_aes_driver = {
|
||||
.probe = kmb_ocs_aes_probe,
|
||||
.remove_new = kmb_ocs_aes_remove,
|
||||
.remove = kmb_ocs_aes_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = kmb_ocs_aes_of_match,
|
||||
|
||||
@@ -991,7 +991,7 @@ static const struct of_device_id kmb_ocs_ecc_of_match[] = {
|
||||
/* The OCS driver is a platform device. */
|
||||
static struct platform_driver kmb_ocs_ecc_driver = {
|
||||
.probe = kmb_ocs_ecc_probe,
|
||||
.remove_new = kmb_ocs_ecc_remove,
|
||||
.remove = kmb_ocs_ecc_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = kmb_ocs_ecc_of_match,
|
||||
|
||||
@@ -1243,7 +1243,7 @@ list_del:
|
||||
/* The OCS driver is a platform device. */
|
||||
static struct platform_driver kmb_ocs_hcu_driver = {
|
||||
.probe = kmb_ocs_hcu_probe,
|
||||
.remove_new = kmb_ocs_hcu_remove,
|
||||
.remove = kmb_ocs_hcu_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = kmb_ocs_hcu_of_match,
|
||||
|
||||
Reference in New Issue
Block a user