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
This commit is contained in:
Shaun Ruffell
2011-06-02 20:04:02 +00:00
parent 20b5c919a4
commit fb942bbd11

View File

@@ -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" : "",