summaryrefslogtreecommitdiff
path: root/drivers/dahdi/pciradio.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-07-26 00:30:39 +0000
committerShaun Ruffell <sruffell@digium.com>2010-07-26 00:30:39 +0000
commit8682c2a90bd996765326fb6477a2466b63530b73 (patch)
tree384ce57c53c650294c490cda43b5ea7e624685cc /drivers/dahdi/pciradio.c
parent5c45b4da59502f5a30f3eb01e431d92d3d1c2202 (diff)
dahdi: Remove the 'pvt' member from dahdi_span.
The vast majority of board drivers already keep the dahdi_span structure in a driver specific structure. The others were easily converted. This way board drivers can use the container_of macro to find what was previously pointed to by the "pvt" member of the span. One less thing to think about in the span structure. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8984 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/pciradio.c')
-rw-r--r--drivers/dahdi/pciradio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dahdi/pciradio.c b/drivers/dahdi/pciradio.c
index 8d55f64..901d8f6 100644
--- a/drivers/dahdi/pciradio.c
+++ b/drivers/dahdi/pciradio.c
@@ -1423,7 +1423,7 @@ static int pciradio_open(struct dahdi_chan *chan)
static int pciradio_watchdog(struct dahdi_span *span, int event)
{
printk(KERN_INFO "PCI RADIO: Restarting DMA\n");
- pciradio_restart_dma(span->pvt);
+ pciradio_restart_dma(container_of(span, struct pciradio, span));
return 0;
}
@@ -1486,7 +1486,6 @@ static int pciradio_initialize(struct pciradio *rad)
rad->span.watchdog = pciradio_watchdog;
init_waitqueue_head(&rad->span.maintq);
- rad->span.pvt = rad;
if (dahdi_register(&rad->span, 0)) {
printk(KERN_NOTICE "Unable to register span with DAHDI\n");
return -1;