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

version 1.9, 2004/05/13 23:49:21 version 1.10, 2004/05/19 22:52:51
Line 120  struct ulpt_softc { Line 120  struct ulpt_softc {
   
         int sc_refcnt;          int sc_refcnt;
         u_char sc_dying;          u_char sc_dying;
   
 #if defined(__FreeBSD__) || defined(__DragonFly__)  
         dev_t dev;  
         dev_t dev_noprime;  
 #endif  
 };  };
   
 #if defined(__NetBSD__)  #if defined(__NetBSD__)
Line 345  USB_ATTACH(ulpt) Line 340  USB_ATTACH(ulpt)
 #endif  #endif
   
 #if defined(__FreeBSD__) || defined(__DragonFly__)  #if defined(__FreeBSD__) || defined(__DragonFly__)
        sc->dev = make_dev(&ulpt_cdevsw, device_get_unit(self),        cdevsw_add(&ulpt_cdevsw, -1, device_get_unit(self));
         make_dev(&ulpt_cdevsw, device_get_unit(self),
                 UID_ROOT, GID_OPERATOR, 0644, "ulpt%d", device_get_unit(self));                  UID_ROOT, GID_OPERATOR, 0644, "ulpt%d", device_get_unit(self));
        sc->dev_noprime = make_dev(&ulpt_cdevsw,        make_dev(&ulpt_cdevsw,
                 device_get_unit(self)|ULPT_NOPRIME,                  device_get_unit(self)|ULPT_NOPRIME,
                 UID_ROOT, GID_OPERATOR, 0644, "unlpt%d", device_get_unit(self));                  UID_ROOT, GID_OPERATOR, 0644, "unlpt%d", device_get_unit(self));
 #endif  #endif
Line 418  USB_DETACH(ulpt) Line 414  USB_DETACH(ulpt)
         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(&ulpt_cdevsw, -1, device_get_unit(self));
        destroy_dev(sc->dev_noprime); 
 #endif  #endif
   
         usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,          usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,

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