diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-11-07 00:35:44 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-11-07 00:35:44 +0000 |
commit | 3ed2ed5684f67da88e3d6bfa8ac58e0f1379d878 (patch) | |
tree | 8b51c5a982d281ee69156bf007c53875a988c965 /drivers/dahdi/wcte12xp/base.c | |
parent | 1bbd0cdfb62de4f0224155d70d3088e174f0d52b (diff) |
voicebus: Add optional sysfs entry for reading a boards current latency.
This is off by default since it hasn't been tested on a full range of kernels,
but can be useful for quickly seeing differences for latencies on different
cards installed in the system.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7522 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp/base.c')
-rw-r--r-- | drivers/dahdi/wcte12xp/base.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index cf5906c..aff9a43 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -1785,8 +1785,6 @@ static int __devinit te12xp_init_one(struct pci_dev *pdev, const struct pci_devi return res; } - /* Keep track of which device we are */ - pci_set_drvdata(pdev, wc); if (VOICEBUS_DEFAULT_LATENCY != latency) { voicebus_set_minlatency(wc->vb, latency); } @@ -1819,7 +1817,7 @@ static int __devinit te12xp_init_one(struct pci_dev *pdev, const struct pci_devi static void __devexit te12xp_remove_one(struct pci_dev *pdev) { - struct t1 *wc = pci_get_drvdata(pdev); + struct t1 *wc = voicebus_pci_dev_to_context(pdev); #ifdef VPM_SUPPORT unsigned long flags; struct vpmadt032 *vpm = wc->vpmadt032; |