mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
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:
parent
917faaf2bd
commit
8e4e40b0d0
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user