crypto: drivers - remove of_match_ptr from OF match tables
Subsystems (2)
PATCH 1/1 crypto: drivers - remove of_match_ptr from OF match tables
Drop of_match_ptr() because OF matching is stubbed out when CONFIG_OF=n.
Indent bcm_spu_pdriver.driver and its members while at it.
Signed-off-by Thorsten Blum <[email protected]>
--- drivers/crypto/bcm/cipher.c | 6 +++--- drivers/crypto/omap-des.c | 2 +- drivers/crypto/qcom-rng.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/crypto/bcm/cipher.c +3 -3
@@ -4698,9 +4698,9 @@ static void bcm_spu_remove(struct platform_device *pdev)static struct platform_driver bcm_spu_pdriver = { .driver = { - .name ="brcm-spu-crypto" , - .of_match_table =of_match_ptr (bcm_spu_dt_ids), - }, + .name ="brcm-spu-crypto" , + .of_match_table = bcm_spu_dt_ids, + }, .probe = bcm_spu_probe, .remove = bcm_spu_remove, };
drivers/crypto/omap-des.c +1 -1
@@ -1111,7 +1111,7 @@ static struct platform_driver omap_des_driver = { .driver = { .name = "omap-des", .pm = &omap_des_pm_ops, - .of_match_table = of_match_ptr(omap_des_of_match), + .of_match_table = omap_des_of_match, }, };
drivers/crypto/qcom-rng.c +1 -1
@@ -265,7 +265,7 @@ static struct platform_driver qcom_rng_driver = { .remove = qcom_rng_remove, .driver = { .name = KBUILD_MODNAME, - .of_match_table = of_match_ptr(qcom_rng_of_match), + .of_match_table = qcom_rng_of_match, .acpi_match_table = ACPI_PTR(qcom_rng_acpi_match), } };