blob: 75ae08cde6b9aa7bd9e4a3edebede25b94d7637d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- freebsd/drivers/dahdi/wcte12xp/base.c.orig 2010-09-02 16:16:05.000000000 +0700
+++ freebsd/drivers/dahdi/wcte12xp/base.c 2013-10-31 18:13:29.000000000 +0700
@@ -1626,7 +1626,11 @@
t4_serial_setup(wc);
+#if defined(__FreeBSD__)
+ num = device_get_unit(pdev->dev) + 1;
+#else
num = x;
+#endif
sprintf(wc->span.name, "WCT1/%d", num);
snprintf(wc->span.desc, sizeof(wc->span.desc) - 1, "%s Card %d", wc->variety, num);
wc->span.manufacturer = "Digium";
|