diff options
-rw-r--r-- | drivers/dahdi/wctdm24xxp/base.c | 2 | ||||
-rw-r--r-- | drivers/dahdi/wcte12xp/base.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index 37d3425..e8be13c 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -4595,6 +4595,8 @@ static void wctdm_fixup_analog_span(struct wctdm *wc, int spanno) continue; if (wc->vpmadt032) strncat(wc->spans[x]->span.devicetype, " (VPMADT032)", sizeof(wc->spans[x]->span.devicetype) - 1); + else if (wc->vpmoct) + strncat(wc->spans[x]->span.devicetype, " (VPMOCT032)", sizeof(wc->spans[x]->span.devicetype) - 1); } } diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index aa9d019..80835c1 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -1022,9 +1022,13 @@ static void set_span_devicetype(struct t1 *wc) sizeof(wc->span.devicetype) - 1); #if defined(VPM_SUPPORT) - if (wc->vpmadt032) + if (wc->vpmadt032) { strncat(wc->span.devicetype, " (VPMADT032)", sizeof(wc->span.devicetype) - 1); + } else if (wc->vpmoct) { + strncat(wc->span.devicetype, " (VPMOCT032)", + sizeof(wc->span.devicetype) - 1); + } #endif } @@ -1660,6 +1664,8 @@ static void check_and_load_vpm(struct t1 *wc) vpmoct_init(vpmoct, t1_vpm_load_complete); } + + set_span_devicetype(wc); } #else static inline void check_and_load_vpm(const struct t1 *wc) |