crypto: atmel-ecc - drop CONFIG_OF guard and of_match_ptr

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>
This commit is contained in:
Thorsten Blum 2026-05-09 12:11:56 +02:00 committed by Herbert Xu
parent 917faaf2bd
commit 8e4e40b0d0

View 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,