From 45f6e62b5342f9972dab88737f07424cda0d252e 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 3191e28..0947108 100644 --- a/fthd_drv.c +++ b/fthd_drv.c @@ -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,