Setting the configuration in *_attach() is a bad practise because if it
authormpi <mpi@openbsd.org>
Tue, 14 Apr 2015 14:57:05 +0000 (14:57 +0000)
committermpi <mpi@openbsd.org>
Tue, 14 Apr 2015 14:57:05 +0000 (14:57 +0000)
commit4dd0bafb12a9eb1eeb6beb79bb6cfbcad2c28ec3
treef02bef94efda20346bfbe2a02f9d740b18d04cbf
parent364e4a0c586c456ef13eb58ddb983c4166b741d0
Setting the configuration in *_attach() is a bad practise because if it
fails it's impossible to debug and you cannot use your device.

So instead of calling usbd_set_config_index(), match the right interface.

This is trivial with this device because it has only one configuration
and interface.
sys/dev/usb/umcs.c