Input: vmmouse - fix absolute device registration
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 16 Jan 2016 18:04:49 +0000 (10:04 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 Jan 2016 00:03:30 +0000 (16:03 -0800)
commitd4f1b06d685d11ebdaccf11c0db1cb3c78736862
tree0ad5cf6a883812393d23597b93e222ec7eb15d72
parent015bb5e134544492d840cee17d7442194cfb0fe4
Input: vmmouse - fix absolute device registration

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 <cand@gmx.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/vmmouse.c