From f6e9fe2adc27915f890cfded1dc86b4bbf681bbd Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 26 Jul 2010 00:30:43 +0000 Subject: dahdi: Move the 'owner' field from dahdi_span to dahdi_span_ops. One more thing that can be moved out of the per-span structure. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8986 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/pciradio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/dahdi/pciradio.c') diff --git a/drivers/dahdi/pciradio.c b/drivers/dahdi/pciradio.c index b6e885f..3d69e5a 100644 --- a/drivers/dahdi/pciradio.c +++ b/drivers/dahdi/pciradio.c @@ -1459,6 +1459,7 @@ static int pciradio_hooksig(struct dahdi_chan *chan, enum dahdi_txsig txsig) } static const struct dahdi_span_ops pciradio_span_ops = { + .owner = THIS_MODULE, .hooksig = pciradio_hooksig, .open = pciradio_open, .close = pciradio_close, @@ -1471,7 +1472,6 @@ static int pciradio_initialize(struct pciradio *rad) int x; /* DAHDI stuff */ - rad->span.owner = THIS_MODULE; sprintf(rad->span.name, "PCIRADIO/%d", rad->pos); sprintf(rad->span.desc, "Board %d", rad->pos + 1); rad->span.deflaw = DAHDI_LAW_MULAW; -- cgit v1.2.3