tpm: drop list from struct tpm_vendor_specific
authorChristophe Ricard <christophe.ricard@gmail.com>
Wed, 23 Mar 2016 20:17:17 +0000 (21:17 +0100)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 25 Jun 2016 14:26:35 +0000 (17:26 +0300)
Dropped list from struct tpm_vendor_specific as it is not used in any
place.

It is initialized in tpm_i2c_infineon but not used at all in the code.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm_i2c_infineon.c

index 7317bec..cd780c7 100644 (file)
@@ -135,7 +135,6 @@ struct tpm_vendor_specific {
 
        int irq;
 
-       struct list_head list;
        int locality;
        unsigned long timeout_a, timeout_b, timeout_c, timeout_d; /* jiffies */
        bool timeout_adjusted;
index f2aa99e..e74f1c1 100644 (file)
@@ -619,7 +619,6 @@ static int tpm_tis_i2c_init(struct device *dev)
 
        dev_info(dev, "1.2 TPM (device-id 0x%X)\n", vendor >> 16);
 
-       INIT_LIST_HEAD(&chip->vendor.list);
        tpm_dev.chip = chip;
 
        tpm_get_timeouts(chip);