From: Peter Huewe Date: Mon, 4 Mar 2013 21:08:54 +0000 (+0100) Subject: tpm/tpm_i2c_infineon.c: Add OF attributes type and name to the of_device_id table entries X-Git-Tag: v3.10-rc1~145^2^2~2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=21dc02eab989d260fd9e22b72a29ac139a727cdd;p=linux.git tpm/tpm_i2c_infineon.c: Add OF attributes type and name to the of_device_id table entries As the subject says. It's probably a good idea to have these fields populated. Signed-off-by: Peter Huewe Signed-off-by: Kent Yoder --- diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm/tpm_i2c_infineon.c index bd9a2958dc39..d83bb8c0217b 100644 --- a/drivers/char/tpm/tpm_i2c_infineon.c +++ b/drivers/char/tpm/tpm_i2c_infineon.c @@ -694,9 +694,24 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_table); #ifdef CONFIG_OF static const struct of_device_id tpm_tis_i2c_of_match[] = { - { .compatible = "infineon,tpm_i2c_infineon", .data = (void *)0 }, - { .compatible = "infineon,slb9635tt", .data = (void *)0 }, - { .compatible = "infineon,slb9645tt", .data = (void *)1 }, + { + .name = "tpm_i2c_infineon", + .type = "tpm", + .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);