We should set device's capabilities first, and then register it,
otherwise various handlers already present in the kernel will not be
able to connect to the device.
Reported-by: Lauri Kasanen <[email protected]>
Cc: [email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>