]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: atmel-ecc - drop CONFIG_OF guard and of_match_ptr
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 9 May 2026 10:11:56 +0000 (12:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:48 +0000 (18:08 +0800)
Drop the CONFIG_OF preprocessor guard and remove of_match_ptr() because
OF matching is stubbed out when CONFIG_OF=n.

Reformat atmel_ecc_dt_ids for consistency.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-ecc.c

index e473810206067e3b03f1621ce68bcb0731cad2c5..9660f6426a849b975d70642ee3ea1f323f015b59 100644 (file)
@@ -368,18 +368,12 @@ static void atmel_ecc_remove(struct i2c_client *client)
        spin_unlock(&driver_data.i2c_list_lock);
 }
 
-#ifdef CONFIG_OF
 static const struct of_device_id atmel_ecc_dt_ids[] = {
-       {
-               .compatible = "atmel,atecc508a",
-       }, {
-               .compatible = "atmel,atecc608b",
-       }, {
-               /* sentinel */
-       }
+       { .compatible = "atmel,atecc508a", },
+       { .compatible = "atmel,atecc608b", },
+       { }
 };
 MODULE_DEVICE_TABLE(of, atmel_ecc_dt_ids);
-#endif
 
 static const struct i2c_device_id atmel_ecc_id[] = {
        { "atecc508a" },
@@ -391,7 +385,7 @@ MODULE_DEVICE_TABLE(i2c, atmel_ecc_id);
 static struct i2c_driver atmel_ecc_driver = {
        .driver = {
                .name   = "atmel-ecc",
-               .of_match_table = of_match_ptr(atmel_ecc_dt_ids),
+               .of_match_table = atmel_ecc_dt_ids,
        },
        .probe          = atmel_ecc_probe,
        .remove         = atmel_ecc_remove,