summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-06-20 13:22:02 +0300
committerJames Morris <james.l.morris@oracle.com>2017-07-07 02:49:25 +0300
commitbc397085ca975d685c7a0b3a2984932eea4f6af0 (patch)
tree7d10e1561cd8760f2578343c1296a406c76d09e0
parent19cbe4f680b48f950246815b891a66eeb67f7410 (diff)
downloadlinux-bc397085ca975d685c7a0b3a2984932eea4f6af0.tar.xz
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>
-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)
{