]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: drivers - remove of_match_ptr from OF match tables
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 16 May 2026 18:23:36 +0000 (20:23 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2026 12:25:30 +0000 (20:25 +0800)
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 <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bcm/cipher.c
drivers/crypto/qcom-rng.c

index 2bce15dc0aa8ff58c37554fc6e05c79384fe6bdf..240b40ae9cd6b50afb5f0fd53672fd44e3f53219 100644 (file)
@@ -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,
 };
index 0685ba122e8ac0409d9345fbeb081d98af32a987..150e5802e351588743acc47848a1e054907a2ba7 100644 (file)
@@ -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),
        }
 };