]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80dc3490a3e3bcad146e316e0e6fc5e07d84d952
treef7b987fba6478d985df5c7bfd382b04fe4ec93a9
parent73044b462ac88394d3c950ca1339a3cbec0684d2
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