Diff for /src/sys/dev/misc/spigot/spigot.c between versions 1.8 and 1.9

version 1.8, 2004/05/13 23:49:17 version 1.9, 2004/05/19 22:52:44
Line 120  static ointhand2_t spigintr; Line 120  static ointhand2_t spigintr;
 static int  static int
 spigot_probe(struct isa_device *devp)  spigot_probe(struct isa_device *devp)
 {  {
int                     status;        struct spigot_softc *ss;
struct  spigot_softc    *ss=(struct spigot_softc *)&spigot_softc[devp->id_unit];        int status;
static int once; 
 
        if (!once++) 
                cdevsw_add(&spigot_cdevsw); 
   
           ss = (struct spigot_softc *)&spigot_softc[devp->id_unit];
         ss->flags = 0;          ss->flags = 0;
         ss->maddr = 0;          ss->maddr = 0;
         ss->irq = 0;          ss->irq = 0;
Line 150  spigot_attach(struct isa_device *devp) Line 147  spigot_attach(struct isa_device *devp)
         devp->id_ointr = spigintr;          devp->id_ointr = spigintr;
         ss->maddr = kvtop(devp->id_maddr);          ss->maddr = kvtop(devp->id_maddr);
         ss->irq = devp->id_irq;          ss->irq = devp->id_irq;
           cdevsw_add(&spigot_cdevsw, -1, unit);
         make_dev(&spigot_cdevsw, unit, 0, 0, 0644, "spigot%d", unit);          make_dev(&spigot_cdevsw, unit, 0, 0, 0644, "spigot%d", unit);
         return 1;          return 1;
 }  }

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