diff options
| -rw-r--r-- | drivers/char/tpm/tpm_tis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index 20a61bc98db8..6725bef7cb96 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c | |||
| @@ -908,8 +908,10 @@ static int tpm_tis_pnp_init(struct pnp_dev *pnp_dev, | |||
| 908 | if (is_itpm(pnp_dev)) | 908 | if (is_itpm(pnp_dev)) |
| 909 | itpm = true; | 909 | itpm = true; |
| 910 | 910 | ||
| 911 | #ifdef CONFIG_ACPI | ||
| 911 | if (pnp_acpi_device(pnp_dev)) | 912 | if (pnp_acpi_device(pnp_dev)) |
| 912 | acpi_dev_handle = pnp_acpi_device(pnp_dev)->handle; | 913 | acpi_dev_handle = pnp_acpi_device(pnp_dev)->handle; |
| 914 | #endif | ||
| 913 | 915 | ||
| 914 | return tpm_tis_init(&pnp_dev->dev, acpi_dev_handle, start, len, irq); | 916 | return tpm_tis_init(&pnp_dev->dev, acpi_dev_handle, start, len, irq); |
| 915 | } | 917 | } |
