Input: vmmouse - fix absolute device registration
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 16 Jan 2016 18:04:49 +0000 (10:04 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Feb 2016 20:01:21 +0000 (12:01 -0800)
commitb864f4e50c56a5bd0ab1603b86164cab66337906
tree23ec01643096b59bcead591dddc921e9a94df4d2
parent726ecfc321994ec6ab044c1e3e5886408de991ac
Input: vmmouse - fix absolute device registration

commit d4f1b06d685d11ebdaccf11c0db1cb3c78736862 upstream.

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>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/mouse/vmmouse.c