mirror of https://github.com/xemu-project/xemu.git
TPM: fix build with tpm disabled
Failure was included on commit Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
6652d0811c
commit
977ad992f1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue