Diff for /src/sys/dev/usbmisc/urio/urio.c between versions 1.9 and 1.10

version 1.9, 2004/05/13 23:49:22 version 1.10, 2004/05/19 22:52:52
Line 147  struct urio_softc { Line 147  struct urio_softc {
         int sc_epaddr[2];          int sc_epaddr[2];
   
         int sc_refcnt;          int sc_refcnt;
 #if defined(__FreeBSD__) || defined(__DragonFly__)  
         dev_t sc_dev_t;  
 #endif  /* defined(__FreeBSD__) */  
 #if defined(__NetBSD__) || defined(__OpenBSD__)  #if defined(__NetBSD__) || defined(__OpenBSD__)
         u_char sc_dying;          u_char sc_dying;
 #endif  #endif
Line 262  USB_ATTACH(urio) Line 259  USB_ATTACH(urio)
         }          }
   
 #if defined(__FreeBSD__) || defined(__DragonFly__)  #if defined(__FreeBSD__) || defined(__DragonFly__)
        /* XXX no error trapping, no storing of dev_t */        cdevsw_add(&urio_cdevsw, -1, device_get_unit(self));
        sc->sc_dev_t = make_dev(&urio_cdevsw, device_get_unit(self),        make_dev(&urio_cdevsw, device_get_unit(self),
                         UID_ROOT, GID_OPERATOR,                          UID_ROOT, GID_OPERATOR,
                         0644, "urio%d", device_get_unit(self));                          0644, "urio%d", device_get_unit(self));
 #elif defined(__NetBSD__) || defined(__OpenBSD__)  #elif defined(__NetBSD__) || defined(__OpenBSD__)
Line 675  USB_DETACH(urio) Line 672  USB_DETACH(urio)
 Static int  Static int
 urio_detach(device_t self)  urio_detach(device_t self)
 {  {
         struct urio_softc *sc = device_get_softc(self);  
   
         DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));          DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
        destroy_dev(sc->sc_dev_t);        cdevsw_remove(&urio_cdevsw, -1, device_get_unit(self));
         /* XXX not implemented yet */          /* XXX not implemented yet */
         device_set_desc(self, NULL);          device_set_desc(self, NULL);
         return 0;          return 0;

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