|
@@ -256,7 +256,6 @@ MODULE_DEVICE_TABLE(pnp, tpm_pnp_tbl);
|
|
|
static void tpm_tis_pnp_remove(struct pnp_dev *dev)
|
|
|
{
|
|
|
struct tpm_chip *chip = pnp_get_drvdata(dev);
|
|
|
- struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev);
|
|
|
|
|
|
tpm_chip_unregister(chip);
|
|
|
tpm_tis_remove(chip);
|
|
@@ -306,7 +305,6 @@ static int tpm_tis_plat_probe(struct platform_device *pdev)
|
|
|
static int tpm_tis_plat_remove(struct platform_device *pdev)
|
|
|
{
|
|
|
struct tpm_chip *chip = dev_get_drvdata(&pdev->dev);
|
|
|
- struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev);
|
|
|
|
|
|
tpm_chip_unregister(chip);
|
|
|
tpm_tis_remove(chip);
|