diff options
-rw-r--r-- | drivers/char/tpm/tpm_tis.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index 4b73e28458e3..f08949a5f678 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c | |||
@@ -256,7 +256,6 @@ MODULE_DEVICE_TABLE(pnp, tpm_pnp_tbl); | |||
256 | static void tpm_tis_pnp_remove(struct pnp_dev *dev) | 256 | static void tpm_tis_pnp_remove(struct pnp_dev *dev) |
257 | { | 257 | { |
258 | struct tpm_chip *chip = pnp_get_drvdata(dev); | 258 | struct tpm_chip *chip = pnp_get_drvdata(dev); |
259 | struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev); | ||
260 | 259 | ||
261 | tpm_chip_unregister(chip); | 260 | tpm_chip_unregister(chip); |
262 | tpm_tis_remove(chip); | 261 | tpm_tis_remove(chip); |
@@ -306,7 +305,6 @@ static int tpm_tis_plat_probe(struct platform_device *pdev) | |||
306 | static int tpm_tis_plat_remove(struct platform_device *pdev) | 305 | static int tpm_tis_plat_remove(struct platform_device *pdev) |
307 | { | 306 | { |
308 | struct tpm_chip *chip = dev_get_drvdata(&pdev->dev); | 307 | struct tpm_chip *chip = dev_get_drvdata(&pdev->dev); |
309 | struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev); | ||
310 | 308 | ||
311 | tpm_chip_unregister(chip); | 309 | tpm_chip_unregister(chip); |
312 | tpm_tis_remove(chip); | 310 | tpm_tis_remove(chip); |