[PATCH 2/5] Input: pxrc - fix freeing URB on device teardown

2018-07-23 Thread Dmitry Torokhov
URB is the only resource that is not managed, and thus is destroyed too early, before we unregister input device and stop URB in pxrc_close(). To fix it let's install custom devm handler to free the URB at the right time in devm unwind sequence. Signed-off-by: Dmitry Torokhov ---

[PATCH 2/5] Input: pxrc - fix freeing URB on device teardown

2018-07-23 Thread Dmitry Torokhov
URB is the only resource that is not managed, and thus is destroyed too early, before we unregister input device and stop URB in pxrc_close(). To fix it let's install custom devm handler to free the URB at the right time in devm unwind sequence. Signed-off-by: Dmitry Torokhov ---