From 977ad992f14b29a7d4f18eaba42a705004545a64 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Tue, 2 Jun 2015 15:47:20 +0200 Subject: TPM: fix build with tpm disabled Failure was included on commit Signed-off-by: Juan Quintela Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/sysemu/tpm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/sysemu/tpm.h') diff --git a/include/sysemu/tpm.h b/include/sysemu/tpm.h index c1438907de..c8afa179e5 100644 --- a/include/sysemu/tpm.h +++ b/include/sysemu/tpm.h @@ -32,11 +32,13 @@ TPMVersion tpm_tis_get_tpm_version(Object *obj); static inline TPMVersion tpm_get_version(void) { +#ifdef CONFIG_TPM Object *obj = object_resolve_path_type("", TYPE_TPM_TIS, NULL); if (obj) { return tpm_tis_get_tpm_version(obj); } +#endif return TPM_VERSION_UNSPEC; } -- cgit v1.2.1