From 8409e8bbb725c79c750d5f52169155736aaafaa1 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 4 Apr 2011 16:25:09 +0000 Subject: wctdm24xxp, wcte12xp, wct4xxp, wcb4xxp, wctdm: Do not support suspend. These drivers (all DAHDI drivers) should explicitly block suspend if they are loaded. Signed-off-by: Shaun Ruffell Acked-by: Michael Spiceland Acked-by: Kinsey Moore git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9882 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'drivers/dahdi/wctdm.c') diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c index 411795c..9c56865 100644 --- a/drivers/dahdi/wctdm.c +++ b/drivers/dahdi/wctdm.c @@ -2765,12 +2765,16 @@ static DEFINE_PCI_DEVICE_TABLE(wctdm_pci_tbl) = { MODULE_DEVICE_TABLE(pci, wctdm_pci_tbl); +static int wctdm_suspend(struct pci_dev *pdev, pm_message_t state) +{ + return -ENOSYS; +} + static struct pci_driver wctdm_driver = { .name = "wctdm", .probe = wctdm_init_one, .remove =__devexit_p(wctdm_remove_one), - .suspend = NULL, - .resume = NULL, + .suspend = wctdm_suspend, .id_table = wctdm_pci_tbl, }; -- cgit v1.2.3