Diff for /src/sys/dev/usbmisc/uhid/uhid.c between versions 1.12 and 1.13

version 1.12, 2004/05/13 23:49:21 version 1.13, 2004/05/19 22:52:51
Line 135  struct uhid_softc { Line 135  struct uhid_softc {
   
         int sc_refcnt;          int sc_refcnt;
         u_char sc_dying;          u_char sc_dying;
   
 #if defined(__FreeBSD__) || defined(__DragonFly__)  
         dev_t dev;  
 #endif  
 };  };
   
 #define UHIDUNIT(dev)   (minor(dev))  #define UHIDUNIT(dev)   (minor(dev))
Line 276  USB_ATTACH(uhid) Line 272  USB_ATTACH(uhid)
         sc->sc_repdesc_size = size;          sc->sc_repdesc_size = size;
   
 #if defined(__FreeBSD__) || defined(__DragonFly__)  #if defined(__FreeBSD__) || defined(__DragonFly__)
        sc->dev = make_dev(&uhid_cdevsw, device_get_unit(self),        cdevsw_add(&uhid_cdevsw, -1, device_get_unit(self));
                        UID_ROOT, GID_OPERATOR,        make_dev(&uhid_cdevsw, device_get_unit(self),
                        0644, "uhid%d", device_get_unit(self));                UID_ROOT, GID_OPERATOR,
                 0644, "uhid%d", device_get_unit(self));
 #endif  #endif
   
         USB_ATTACH_SUCCESS_RETURN;          USB_ATTACH_SUCCESS_RETURN;
Line 341  USB_DETACH(uhid) Line 338  USB_DETACH(uhid)
         mn = self->dv_unit;          mn = self->dv_unit;
         vdevgone(maj, mn, mn, VCHR);          vdevgone(maj, mn, mn, VCHR);
 #elif defined(__FreeBSD__) || defined(__DragonFly__)  #elif defined(__FreeBSD__) || defined(__DragonFly__)
        destroy_dev(sc->dev);        cdevsw_remove(&uhid_cdevsw, -1, device_get_unit(self));
 #endif  #endif
   
         if (sc->sc_repdesc)          if (sc->sc_repdesc)

Removed from v.1.12  
changed lines
  Added in v.1.13