summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-06-02 20:04:02 +0000
committerShaun Ruffell <sruffell@digium.com>2011-06-02 20:04:02 +0000
commit13b7e906e7e7890d44a2056b10c332081e2dab78 (patch)
treeccc4b186fb0a662bd495dee3416cc339b17f669e
parent97fda1fbba8eaa7dfb5cadeb97a25e9f1a95d557 (diff)
wctdm24xxp: Do not export board number in the device description.
The board number dupliates the information that is available in the location field. Exporting it as part of the description makes the name dependent on the driver bind order which is not desirable. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9971 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--drivers/dahdi/wctdm24xxp/base.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c
index 9f80549..caee746 100644
--- a/drivers/dahdi/wctdm24xxp/base.c
+++ b/drivers/dahdi/wctdm24xxp/base.c
@@ -4056,8 +4056,7 @@ wctdm_init_span(struct wctdm *wc, int spanno, int chanoffset, int chancount,
else
sprintf(s->span.name, "WCTDM/%d", card_position);
- snprintf(s->span.desc, sizeof(s->span.desc) - 1, "%s Board %d",
- wc->desc->name, card_position + 1);
+ snprintf(s->span.desc, sizeof(s->span.desc) - 1, "%s", wc->desc->name);
snprintf(s->span.location, sizeof(s->span.location) - 1,
"PCI%s Bus %02d Slot %02d",
(wc->desc->flags & FLAG_EXPRESS) ? " Express" : "",