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

version 1.9, 2004/03/15 01:10:45 version 1.10, 2004/03/15 02:27:57
Line 293  USB_ATTACH(ums) Line 293  USB_ATTACH(ums)
                         break;                          break;
         sc->nbuttons = i - 1;          sc->nbuttons = i - 1;
         sc->sc_loc_btn = malloc(sizeof(struct hid_location)*sc->nbuttons,          sc->sc_loc_btn = malloc(sizeof(struct hid_location)*sc->nbuttons,
                                M_USBDEV, M_WAITOK);                                M_USBDEV, M_INTWAIT);
   
         printf("%s: %d buttons%s\n", USBDEVNAME(sc->sc_dev),          printf("%s: %d buttons%s\n", USBDEVNAME(sc->sc_dev),
                sc->nbuttons, sc->flags & UMS_Z? " and Z dir." : "");                 sc->nbuttons, sc->flags & UMS_Z? " and Z dir." : "");
Line 303  USB_ATTACH(ums) Line 303  USB_ATTACH(ums)
                                 hid_input, &sc->sc_loc_btn[i-1], 0);                                  hid_input, &sc->sc_loc_btn[i-1], 0);
   
         sc->sc_isize = hid_report_size(desc, size, hid_input, &sc->sc_iid);          sc->sc_isize = hid_report_size(desc, size, hid_input, &sc->sc_iid);
        sc->sc_ibuf = malloc(sc->sc_isize, M_USB, M_WAITOK);        sc->sc_ibuf = malloc(sc->sc_isize, M_USB, M_INTWAIT);
         sc->sc_ep_addr = ed->bEndpointAddress;          sc->sc_ep_addr = ed->bEndpointAddress;
         sc->sc_disconnected = 0;          sc->sc_disconnected = 0;
         free(desc, M_TEMP);          free(desc, M_TEMP);

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