Attach fthd_pci_remove() to pci driver shutdown hook

When running Linux in a VM with the facetimehd module, the device must explicitly be removed.

If the device is not removed upon a shutdown of the VM, the device becomes inoperable until a full reboot of the host. Inoperable here means that the error message "Init failed! No wake signal" occurs.
This commit is contained in:
Joshua Rogers
2024-10-02 12:36:10 +02:00
committed by Patrik Jakobsson
parent ce125969cc
commit 45f6e62b53

View File

@@ -532,6 +532,7 @@ static struct pci_driver fthd_pci_driver = {
.name = KBUILD_MODNAME,
.probe = fthd_pci_probe,
.remove = fthd_pci_remove,
.shutdown = fthd_pci_remove,
.id_table = fthd_pci_id_table,
#ifdef CONFIG_PM
.suspend = fthd_pci_suspend,