aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm_tis.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-06-20 11:22:02 +0100
committerJames Morris <james.l.morris@oracle.com>2017-07-07 09:49:25 +1000
commitbc397085ca975d685c7a0b3a2984932eea4f6af0 (patch)
tree7d10e1561cd8760f2578343c1296a406c76d09e0 /drivers/char/tpm/tpm_tis.c
parenttpm: consolidate the TPM startup code (diff)
downloadlinux-dev-bc397085ca975d685c7a0b3a2984932eea4f6af0.tar.xz
linux-dev-bc397085ca975d685c7a0b3a2984932eea4f6af0.zip
tpm_tis: make ilb_base_addr static
The pointer ilb_base_addr does not need to be in global scope, so make it static. Cleans up sparse warning: "symbol 'ilb_base_addr' was not declared. Should it be static?" Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to '')
-rw-r--r--drivers/char/tpm/tpm_tis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
index d97ce22267fb..7e55aa9ce680 100644
--- a/drivers/char/tpm/tpm_tis.c
+++ b/drivers/char/tpm/tpm_tis.c
@@ -138,7 +138,7 @@ static int check_acpi_tpm2(struct device *dev)
#define LPC_CNTRL_REG_OFFSET 0x84
#define LPC_CLKRUN_EN (1 << 2)
-void __iomem *ilb_base_addr;
+static void __iomem *ilb_base_addr;
static inline bool is_bsw(void)
{