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
This commit is contained in:
Warner Losh 2024-06-24 23:35:30 -06:00
parent 6a467c783d
commit bbecd3148a

View File

@ -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);