diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-01-08 20:48:03 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-01-08 20:48:03 +0000 |
commit | 8ed48876305e23ca69723aba8fa5f1465a794d9d (patch) | |
tree | 2fec6c26ffa4e16ce0be0e4c5cf8f2dbd66dc0e9 /drivers/dahdi/wcte12xp/base.c | |
parent | 4d3c52e9fa00c3f18744a08a15df24907129effb (diff) |
voicebus: Remove framesize, buffer_cache, and cache_line members from struct.
Framesize is the same on all the clients, so it can be removed from the 'struct
voicebus' (and changed back again if needed). Since the framesize is the same,
each board doesn't need it's own buffer_cache, and cache_line is only used
during startup and can be read directly from pci configuration space, so we
don't need to keep it around in our context.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7779 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp/base.c')
-rw-r--r-- | drivers/dahdi/wcte12xp/base.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index 9d51a66..43b5f5f 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -49,6 +49,10 @@ #include "voicebus/GpakCust.h" #include "voicebus/GpakApi.h" +#if VOICEBUS_SFRAME_SIZE != SFRAME_SIZE +#error VOICEBUS_SFRAME_SIZE != SFRAME_SIZE +#endif + struct pci_driver te12xp_driver; int debug = 0; @@ -1791,7 +1795,6 @@ static int __devinit te12xp_init_one(struct pci_dev *pdev, const struct pci_devi pci_set_drvdata(pdev, wc); wc->vb.ops = &voicebus_operations; wc->vb.pdev = pdev; - wc->vb.framesize = SFRAME_SIZE; wc->vb.debug = &debug; res = voicebus_init(&wc->vb, wc->name); if (res) { |