git: bbecd3148abf - main - tpm: Fix acpi attachment
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Jun 2024 05:36:44 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=bbecd3148abf68918b1aa5fc7750dd8ec17fea72 commit bbecd3148abf68918b1aa5fc7750dd8ec17fea72 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2024-06-25 05:35:30 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-06-25 05:35:30 +0000 tpm: Fix acpi attachment The third arg of the DRIVER_MODULE arg is the driver to use. We want to use the acpi bus version rather than the generic one. Otherwise, the ACPI specific probe and attach functions aren't used and we don't see the device. Sponsored by: Netflix --- sys/dev/tpm/tpm_tis_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/tpm/tpm_tis_acpi.c b/sys/dev/tpm/tpm_tis_acpi.c index 32c73e5f2483..1d76d4f73266 100644 --- a/sys/dev/tpm/tpm_tis_acpi.c +++ b/sys/dev/tpm/tpm_tis_acpi.c @@ -83,4 +83,4 @@ static device_method_t tpmtis_methods[] = { DEFINE_CLASS_2(tpmtis, tpmtis_acpi_driver, tpmtis_methods, sizeof(struct tpm_sc), tpmtis_driver, tpm_bus_driver); -DRIVER_MODULE(tpmtis, acpi, tpmtis_driver, 0, 0); +DRIVER_MODULE(tpmtis, acpi, tpmtis_acpi_driver, 0, 0);