From fb942bbd114046a97a3b742d2048a7066894f1c1 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 2 Jun 2011 20:04:02 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9971 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm24xxp/base.c | 3 +-- 1 file changed, 1 insertion(+), 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" : "",