diff options
author | Amarnath Valluri | 2017-09-29 13:10:15 +0200 |
---|---|---|
committer | Stefan Berger | 2017-10-13 13:34:33 +0200 |
commit | f35fe5cb97bbdaa6a6967f2fefc3fc1f79680601 (patch) | |
tree | 2bbd77327a4d5de1192173a5ec06ffe5ce42a1d1 /include/sysemu/tpm_backend.h | |
parent | tpm-backend: Move thread handling inside TPMBackend (diff) | |
download | qemu-f35fe5cb97bbdaa6a6967f2fefc3fc1f79680601.tar.gz qemu-f35fe5cb97bbdaa6a6967f2fefc3fc1f79680601.tar.xz qemu-f35fe5cb97bbdaa6a6967f2fefc3fc1f79680601.zip |
tpm-backend: Initialize and free data members in it's own methods
Initialize and free TPMBackend data members in it's own instance_init() and
instance_finalize methods.
Took the opportunity to remove unneeded destroy() method from TpmDriverOps
interface as TPMBackend is a Qemu Object, we can use object_unref() inplace of
tpm_backend_destroy() to free the backend object, hence removed destroy() from
TPMDriverOps interface.
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'include/sysemu/tpm_backend.h')
-rw-r--r-- | include/sysemu/tpm_backend.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/sysemu/tpm_backend.h b/include/sysemu/tpm_backend.h index 58308b3687..202ec8d5a2 100644 --- a/include/sysemu/tpm_backend.h +++ b/include/sysemu/tpm_backend.h @@ -78,7 +78,6 @@ struct TPMDriverOps { const char *(*desc)(void); TPMBackend *(*create)(QemuOpts *opts, const char *id); - void (*destroy)(TPMBackend *t); /* initialize the backend */ int (*init)(TPMBackend *t); @@ -118,12 +117,6 @@ enum TpmType tpm_backend_get_type(TPMBackend *s); const char *tpm_backend_get_desc(TPMBackend *s); /** - * tpm_backend_destroy: - * @s: the backend to destroy - */ -void tpm_backend_destroy(TPMBackend *s); - -/** * tpm_backend_init: * @s: the backend to initialized * @state: TPMState |