summaryrefslogtreecommitdiffstats
path: root/sys/dev/si
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-01-02 19:39:09 +0000
committerpeter <peter@FreeBSD.org>1996-01-02 19:39:09 +0000
commit442289ecebabcbeb775641ba8f8982000cf3c185 (patch)
tree82549029b239df36d14208eaf979f6bdf51ee992 /sys/dev/si
parentd409ba2b4f2cf7eca62854fea301c0bfbb44f3ce (diff)
downloadFreeBSD-src-442289ecebabcbeb775641ba8f8982000cf3c185.zip
FreeBSD-src-442289ecebabcbeb775641ba8f8982000cf3c185.tar.gz
Fix the number of ports created for devfs.. it had been only creating
enough nodes for the number of ports on the last module, not the number of ports _total_ that the driver is managing... Submitted by: Robert Sanders <rsanders@mindspring.com>
Diffstat (limited to 'sys/dev/si')
-rw-r--r--sys/dev/si/si.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index a39d161..48d8e11 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -30,7 +30,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.31 1996/01/02 09:18:07 peter Exp $
+ * $Id: si.c,v 1.32 1996/01/02 09:20:29 peter Exp $
*/
#ifndef lint
@@ -699,7 +699,7 @@ mem_fail:
#ifdef DEVFS
/* path name devsw minor type uid gid perm*/
- for ( x = 0; x < nport; x++ ) {
+ for ( x = 0; x < sc->sc_nport; x++ ) {
y = x + 1; /* For sync with the manuals that start at 1 */
sprintf(name,"ttyA%c%c", chardev[y / 10], chardev[y % 10]);
sc->devfs_token[x].ttyd = devfs_add_devsw(
OpenPOWER on IntegriCloud