summaryrefslogtreecommitdiff
path: root/zaptel-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel-base.c')
-rw-r--r--zaptel-base.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/zaptel-base.c b/zaptel-base.c
index b4f429a..e10540a 100644
--- a/zaptel-base.c
+++ b/zaptel-base.c
@@ -4595,8 +4595,10 @@ int zt_register(struct zt_span *span, int prefmaster)
#ifdef CONFIG_ZAP_UDEV
for (x = 0; x < span->channels; x++) {
char chan_name[50];
- sprintf(chan_name, "zap%d", span->chans[x].channo);
- CLASS_DEV_CREATE(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo), NULL, chan_name);
+ if (span->chans[x].channo < 250) {
+ sprintf(chan_name, "zap%d", span->chans[x].channo);
+ CLASS_DEV_CREATE(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo), NULL, chan_name);
+ }
}
#endif /* CONFIG_ZAP_UDEV */