mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
tpm: remove tpm_register_driver()
No more users of be_drivers[], drop that too. Signed-off-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>
This commit is contained in:
parent
d91a7a575e
commit
ed836d9d6b
4 changed files with 0 additions and 11 deletions
8
tpm.c
8
tpm.c
|
@ -23,7 +23,6 @@
|
|||
static QLIST_HEAD(, TPMBackend) tpm_backends =
|
||||
QLIST_HEAD_INITIALIZER(tpm_backends);
|
||||
|
||||
static TPMDriverOps const *be_drivers[TPM_TYPE__MAX];
|
||||
static bool tpm_models[TPM_MODEL__MAX];
|
||||
|
||||
void tpm_register_model(enum TpmModel model)
|
||||
|
@ -33,13 +32,6 @@ void tpm_register_model(enum TpmModel model)
|
|||
|
||||
#ifdef CONFIG_TPM
|
||||
|
||||
void tpm_register_driver(const TPMDriverOps *tdo)
|
||||
{
|
||||
assert(!be_drivers[tdo->type]);
|
||||
|
||||
be_drivers[tdo->type] = tdo;
|
||||
}
|
||||
|
||||
static const TPMDriverOps *
|
||||
tpm_driver_find_by_type(enum TpmType type)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue