diff options
Diffstat (limited to 'sys/dev/rc/rc.c')
-rw-r--r-- | sys/dev/rc/rc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 8e0fdc5..78b94f2 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -33,7 +33,6 @@ #include "rc.h" #if NRC > 0 - #include "opt_devfs.h" /*#define RCDEBUG*/ @@ -59,7 +58,6 @@ #include <i386/isa/ic/cd180.h> #include <i386/isa/rcreg.h> - /* Prototypes */ static int rcprobe __P((struct isa_device *)); static int rcattach __P((struct isa_device *)); @@ -213,10 +211,6 @@ rcprobe(dvp) { int irq = ffs(dvp->id_irq) - 1; register int nec = dvp->id_iobase; - static int once; - - if (!once++) - cdevsw_add(&rc_cdevsw); if (dvp->id_unit > NRC) return 0; @@ -291,9 +285,10 @@ rcattach(dvp) } rcb->rcb_probed = RC_ATTACHED; if (!rc_started) { + cdevsw_add(&rc_cdevsw); register_swi(SWI_TTY, rcpoll); rc_wakeup((void *)NULL); - rc_started = 0; + rc_started = 1; } return 1; } |