summaryrefslogtreecommitdiff
path: root/drivers/char/tpm/tpm-chip.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-02-05 00:54:27 +0300
committerJarkko Sakkinen <jarkko@kernel.org>2021-02-16 11:40:27 +0300
commit90cba8d20f8b09d62a25f9864cb8e67722d76c3a (patch)
tree759ae82b4cd6fd8545f094562b989d7d6f8748ff /drivers/char/tpm/tpm-chip.c
parent52d0848e1d60e8884eca6a949300f8e5be094ddf (diff)
downloadlinux-90cba8d20f8b09d62a25f9864cb8e67722d76c3a.tar.xz
tpm/ppi: Constify static struct attribute_group
The only usage of ppi_attr_grp is to put its address in an array of pointers to const struct attribute_group. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'drivers/char/tpm/tpm-chip.c')
-rw-r--r--drivers/char/tpm/tpm-chip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm-chip.c b/drivers/char/tpm/tpm-chip.c
index ddaeceb7e109..19e23fcc6bc8 100644
--- a/drivers/char/tpm/tpm-chip.c
+++ b/drivers/char/tpm/tpm-chip.c
@@ -278,6 +278,8 @@ static void tpm_devs_release(struct device *dev)
{
struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs);
+ dump_stack();
+
/* release the master device reference */
put_device(&chip->dev);
}