mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 19:10:01 +02:00
facetimehd: Hack the suspend/resume handlers
This is a temporary fix for suspend/resume. It'll unload and reload the entire driver on suspend/resume. This will obviously not work if the device is not closed. Also, remove the PCI_VDEVICE macro. Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
This commit is contained in:
@@ -518,17 +518,21 @@ fail_work:
|
||||
#ifdef CONFIG_PM
|
||||
static int fthd_pci_suspend(struct pci_dev *pdev, pm_message_t state)
|
||||
{
|
||||
fthd_pci_remove(pdev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fthd_pci_resume(struct pci_dev *pdev)
|
||||
{
|
||||
fthd_pci_probe(pdev, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
static const struct pci_device_id fthd_pci_id_table[] = {
|
||||
{ PCI_VDEVICE(BROADCOM, 0x1570), 4 },
|
||||
{ PCI_DEVICE(0x14e4, 0x1570), 4 },
|
||||
{ 0, },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user