From b764ebded8f543d62e1a19463db7c2926b9b22e0 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/tor2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/dahdi/tor2.c') diff --git a/drivers/dahdi/tor2.c b/drivers/dahdi/tor2.c index 633369c..b859708 100644 --- a/drivers/dahdi/tor2.c +++ b/drivers/dahdi/tor2.c @@ -260,6 +260,7 @@ static int tor2_close(struct dahdi_chan *chan) } static const struct dahdi_span_ops tor2_span_ops = { + .owner = THIS_MODULE, .spanconfig = tor2_spanconfig, .chanconfig = tor2_chanconfig, .startup = tor2_startup, @@ -285,7 +286,6 @@ static void init_spans(struct tor2 *tor) dahdi_copy_string(s->devicetype, tor->type, sizeof(s->devicetype)); snprintf(s->location, sizeof(s->location) - 1, "PCI Bus %02d Slot %02d", tor->pci->bus->number, PCI_SLOT(tor->pci->devfn) + 1); - s->owner = THIS_MODULE; if (tor->cardtype == TYPE_T1) { s->channels = 24; s->deflaw = DAHDI_LAW_MULAW; -- cgit v1.2.3