Commit b4f20826 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Jarkko Sakkinen

tpm: remove unused data fields from I2C and OF device ID tables

The data field for the entries in the device tables are set but not used.
Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@ziepe.ca>
Reviewed-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent 6c9f0ce0
...@@ -665,9 +665,9 @@ static int tpm_tis_i2c_init(struct device *dev) ...@@ -665,9 +665,9 @@ static int tpm_tis_i2c_init(struct device *dev)
} }
static const struct i2c_device_id tpm_tis_i2c_table[] = { static const struct i2c_device_id tpm_tis_i2c_table[] = {
{"tpm_i2c_infineon", 0}, {"tpm_i2c_infineon"},
{"slb9635tt", 0}, {"slb9635tt"},
{"slb9645tt", 1}, {"slb9645tt"},
{}, {},
}; };
...@@ -675,24 +675,9 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_table); ...@@ -675,24 +675,9 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_table);
#ifdef CONFIG_OF #ifdef CONFIG_OF
static const struct of_device_id tpm_tis_i2c_of_match[] = { static const struct of_device_id tpm_tis_i2c_of_match[] = {
{ {.compatible = "infineon,tpm_i2c_infineon"},
.name = "tpm_i2c_infineon", {.compatible = "infineon,slb9635tt"},
.type = "tpm", {.compatible = "infineon,slb9645tt"},
.compatible = "infineon,tpm_i2c_infineon",
.data = (void *)0
},
{
.name = "slb9635tt",
.type = "tpm",
.compatible = "infineon,slb9635tt",
.data = (void *)0
},
{
.name = "slb9645tt",
.type = "tpm",
.compatible = "infineon,slb9645tt",
.data = (void *)1
},
{}, {},
}; };
MODULE_DEVICE_TABLE(of, tpm_tis_i2c_of_match); MODULE_DEVICE_TABLE(of, tpm_tis_i2c_of_match);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment