summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-04-04 16:25:09 +0000
committerShaun Ruffell <sruffell@digium.com>2011-04-04 16:25:09 +0000
commit8409e8bbb725c79c750d5f52169155736aaafaa1 (patch)
tree30d1de3d4aac2f18bc2b611925953ed53dd31560 /drivers/dahdi/wcte12xp
parent23240110298c0255fd12346c36b5eb177ddc3304 (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/wcte12xp')
-rw-r--r--drivers/dahdi/wcte12xp/base.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index 4a290bc..987de9b 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -2377,6 +2377,11 @@ static void te12xp_shutdown(struct pci_dev *pdev)
}
#endif
+static int te12xp_suspend(struct pci_dev *pdev, pm_message_t state)
+{
+ return -ENOSYS;
+}
+
MODULE_DEVICE_TABLE(pci, te12xp_pci_tbl);
static struct pci_driver te12xp_driver = {
@@ -2386,6 +2391,7 @@ static struct pci_driver te12xp_driver = {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12)
.shutdown = te12xp_shutdown,
#endif
+ .suspend = te12xp_suspend,
.id_table = te12xp_pci_tbl,
};