Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari/dev No longer abuse cf_unit. This broke with ...



details:   https://anonhg.NetBSD.org/src/rev/89833e28fa39
branches:  trunk
changeset: 480764:89833e28fa39
user:      leo <leo%NetBSD.org@localhost>
date:      Wed Jan 19 13:23:14 2000 +0000

description:
No longer abuse cf_unit. This broke with the latest autoconf changes.

diffstat:

 sys/arch/atari/dev/ite.c |  17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)

diffs (39 lines):

diff -r 45471ff4864a -r 89833e28fa39 sys/arch/atari/dev/ite.c
--- a/sys/arch/atari/dev/ite.c  Wed Jan 19 13:12:54 2000 +0000
+++ b/sys/arch/atari/dev/ite.c  Wed Jan 19 13:23:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ite.c,v 1.26 1998/07/04 22:18:21 jonathan Exp $        */
+/*     $NetBSD: ite.c,v 1.27 2000/01/19 13:23:14 leo Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -153,7 +153,6 @@
        void            *auxp;
 {
        struct grf_softc *gp  = auxp;
-       dev_t            itedev;
        int              maj;
        
        /*
@@ -171,20 +170,8 @@
        for(maj = 0; maj < nchrdev; maj++)
                if (cdevsw[maj].d_open == iteopen)
                        break;
-       itedev = makedev(maj, cfp->cf_unit);
 
-       /*
-        * Try to make sure that a single ite will not be attached to
-        * multiple grf's.
-        * Note that the console grf is the only grf that will ever enter
-        * here with itedev != (dev_t)-1.
-        */
-       if (gp->g_itedev == (dev_t)-1) {
-               if (ite_confunits & (1 << ITEUNIT(itedev)))
-                               return (0);
-       }
-
-       gp->g_itedev = itedev;
+       gp->g_itedev = makedev(maj, cfp->cf_unit);
        return(1);
 }
 



Home | Main Index | Thread Index | Old Index