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/wctdm24xxp | |
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/wctdm24xxp')
-rw-r--r-- | drivers/dahdi/wctdm24xxp/base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index 9a9ad87..003904d 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -4902,6 +4902,11 @@ static void wctdm_shutdown(struct pci_dev *pdev) 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 = "wctdm24xxp", .probe = wctdm_init_one, @@ -4909,6 +4914,7 @@ static struct pci_driver wctdm_driver = { #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12) .shutdown = wctdm_shutdown, #endif + .suspend = wctdm_suspend, .id_table = wctdm_pci_tbl, }; |