Input: pxrc - do not store USB device in private struct
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Wed, 18 Jul 2018 17:57:31 +0000 (17:57 +0000)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 25 Jul 2018 19:04:13 +0000 (19:04 +0000)
commit9730f60888d4b35be0f2d7316cb9e227d071cdda
treef7b987fba6478d985df5c7bfd382b04fe4ec93a9
parent2b6e68119c474a62396b387130a984ad8240dce2
Input: pxrc - do not store USB device in private struct

The USB device is only needed during setup, so put it back after
initialization and do not store it in our private struct.

Also, the USB device is a parent of USB interface so our driver
model rules ensure that USB device should not disappear while
interface device is still there; there is no need to take reference
to the USB device.

Reported-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/pxrc.c