diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-20 06:22:02 -0400 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-07-06 19:49:25 -0400 |
commit | bc397085ca975d685c7a0b3a2984932eea4f6af0 (patch) | |
tree | 7d10e1561cd8760f2578343c1296a406c76d09e0 | |
parent | 19cbe4f680b48f950246815b891a66eeb67f7410 (diff) |
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.c | 2 |
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) | |||
138 | #define LPC_CNTRL_REG_OFFSET 0x84 | 138 | #define LPC_CNTRL_REG_OFFSET 0x84 |
139 | #define LPC_CLKRUN_EN (1 << 2) | 139 | #define LPC_CLKRUN_EN (1 << 2) |
140 | 140 | ||
141 | void __iomem *ilb_base_addr; | 141 | static void __iomem *ilb_base_addr; |
142 | 142 | ||
143 | static inline bool is_bsw(void) | 143 | static inline bool is_bsw(void) |
144 | { | 144 | { |