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 | c8c13d244d11a9ac0004049886a21f8471e319e7 (patch) | |
tree | 30d1de3d4aac2f18bc2b611925953ed53dd31560 /drivers/dahdi/wct4xxp | |
parent | 295b0c79dfe4eb175f02797f142c2a059af7b370 (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/wct4xxp')
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index 923ed93..97a1f3c 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -4979,6 +4979,11 @@ static void _t4_shutdown(struct pci_dev *pdev) } #endif +static int t4_suspend(struct pci_dev *pdev, pm_message_t state) +{ + return -ENOSYS; +} + static struct pci_driver t4_driver = { .name = "wct4xxp", .probe = t4_init_one, @@ -4986,6 +4991,7 @@ static struct pci_driver t4_driver = { #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12) .shutdown = _t4_shutdown, #endif + .suspend = t4_suspend, .id_table = t4_pci_tbl, }; |