mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
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>
This commit is contained in:
parent
864ef7d17e
commit
876791a6b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13169
@ -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 @@ siattach(id)
|
||||
|
||||
#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(
|
||||
|
@ -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 @@ siattach(id)
|
||||
|
||||
#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(
|
||||
|
Loading…
Reference in New Issue
Block a user