From 20055fa2e9d83f62cbdb4bfca36e41403e29eede Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Wed, 2 Oct 2024 12:36:10 +0200 Subject: [PATCH] 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. --- fthd_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fthd_drv.c b/fthd_drv.c index 458f582..25ae22c 100644 --- a/fthd_drv.c +++ b/fthd_drv.c @@ -542,6 +542,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,