Diff for /src/sys/dev/misc/tw/tw.c between versions 1.9 and 1.10

version 1.9, 2004/05/13 23:49:18 version 1.10, 2004/05/19 22:52:45
Line 347  static int twprobe(idp) Line 347  static int twprobe(idp)
   struct tw_sc sc;    struct tw_sc sc;
   int d;    int d;
   int tries;    int tries;
   static int once;  
   
   if (!once++)  
         cdevsw_add(&tw_cdevsw);  
   sc.sc_port = idp->id_iobase;    sc.sc_port = idp->id_iobase;
   /* Search for the zero crossing signal at ports, bit combinations. */    /* Search for the zero crossing signal at ports, bit combinations. */
   tw_zcport = tw_control;    tw_zcport = tw_control;
Line 406  static int twattach(idp) Line 403  static int twattach(idp)
   sc->sc_state = 0;    sc->sc_state = 0;
   sc->sc_rcount = 0;    sc->sc_rcount = 0;
   callout_handle_init(&sc->abortrcv_ch);    callout_handle_init(&sc->abortrcv_ch);
     cdevsw_add(&tw_cdevsw, -1, unit);
   make_dev(&tw_cdevsw, unit, 0, 0, 0600, "tw%d", unit);    make_dev(&tw_cdevsw, unit, 0, 0, 0600, "tw%d", unit);
   return (1);    return (1);
 }  }

Removed from v.1.9  
changed lines
  Added in v.1.10