mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
tpm: compile out unused code in the PNP and PM cases
The tpm_tis driver doesn't use tpm_tis_resume except when PM is configured and doesn't make use of tpm_tis_reenable_interrupts except when PM or PNP is configured. Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
This commit is contained in:
parent
dd7da132f7
commit
7e72fe73bf
1 changed files with 2 additions and 1 deletions
|
@ -705,6 +705,7 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_PNP) || defined(CONFIG_PM_SLEEP)
|
||||||
static void tpm_tis_reenable_interrupts(struct tpm_chip *chip)
|
static void tpm_tis_reenable_interrupts(struct tpm_chip *chip)
|
||||||
{
|
{
|
||||||
u32 intmask;
|
u32 intmask;
|
||||||
|
@ -725,7 +726,7 @@ static void tpm_tis_reenable_interrupts(struct tpm_chip *chip)
|
||||||
iowrite32(intmask,
|
iowrite32(intmask,
|
||||||
chip->vendor.iobase + TPM_INT_ENABLE(chip->vendor.locality));
|
chip->vendor.iobase + TPM_INT_ENABLE(chip->vendor.locality));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PNP
|
#ifdef CONFIG_PNP
|
||||||
static int __devinit tpm_tis_pnp_init(struct pnp_dev *pnp_dev,
|
static int __devinit tpm_tis_pnp_init(struct pnp_dev *pnp_dev,
|
||||||
|
|
Loading…
Reference in a new issue