qemu-e2k/hw/tpm
Amarnath Valluri f35fe5cb97 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>
2017-10-13 07:34:33 -04:00
..
Makefile.objs
tpm_int.h
tpm_passthrough.c tpm-backend: Initialize and free data members in it's own methods 2017-10-13 07:34:33 -04:00
tpm_tis.c
tpm_tis.h
tpm_util.c tpm: Use EMSGSIZE instead of EBADMSG to compile on OpenBSD 2017-10-13 07:34:32 -04:00
tpm_util.h