aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm-chip.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tpm/tpm-chip.c')
-rw-r--r--drivers/char/tpm/tpm-chip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/tpm/tpm-chip.c b/drivers/char/tpm/tpm-chip.c
index 7dc9999e2d54..64102de91ca3 100644
--- a/drivers/char/tpm/tpm-chip.c
+++ b/drivers/char/tpm/tpm-chip.c
@@ -147,7 +147,7 @@ int tpm_chip_register(struct tpm_chip *chip)
147 if (rc) 147 if (rc)
148 goto del_misc; 148 goto del_misc;
149 149
150 rc = tpm_add_ppi(&chip->dev->kobj); 150 rc = tpm_add_ppi(chip);
151 if (rc) 151 if (rc)
152 goto del_sysfs; 152 goto del_sysfs;
153 153
@@ -191,7 +191,7 @@ void tpm_chip_unregister(struct tpm_chip *chip)
191 191
192 if (chip->bios_dir) 192 if (chip->bios_dir)
193 tpm_bios_log_teardown(chip->bios_dir); 193 tpm_bios_log_teardown(chip->bios_dir);
194 tpm_remove_ppi(&chip->dev->kobj); 194 tpm_remove_ppi(chip);
195 tpm_sysfs_del_device(chip); 195 tpm_sysfs_del_device(chip);
196 196
197 tpm_dev_del_device(chip); 197 tpm_dev_del_device(chip);