diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-04-04 16:25:09 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-04-04 16:25:09 +0000 |
commit | 8409e8bbb725c79c750d5f52169155736aaafaa1 (patch) | |
tree | 30d1de3d4aac2f18bc2b611925953ed53dd31560 /drivers/dahdi/wctdm.c | |
parent | 23240110298c0255fd12346c36b5eb177ddc3304 (diff) |
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 <sruffell@digium.com>
Acked-by: Michael Spiceland <mspiceland@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9882 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm.c')
-rw-r--r-- | drivers/dahdi/wctdm.c | 8 |
1 files changed, 6 insertions, 2 deletions
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, }; |