mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
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:
parent
6a467c783d
commit
bbecd3148a
|
@ -83,4 +83,4 @@ static device_method_t tpmtis_methods[] = {
|
||||||
DEFINE_CLASS_2(tpmtis, tpmtis_acpi_driver, tpmtis_methods,
|
DEFINE_CLASS_2(tpmtis, tpmtis_acpi_driver, tpmtis_methods,
|
||||||
sizeof(struct tpm_sc), tpmtis_driver, tpm_bus_driver);
|
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);
|
||||||
|
|
Loading…
Reference in a new issue