diff options
| -rw-r--r-- | input-xpad-handle-present-and-gone-correctly.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input-xpad-handle-present-and-gone-correctly.patch b/input-xpad-handle-present-and-gone-correctly.patch index e093ec98de782b..076f6c7c753f9a 100644 --- a/input-xpad-handle-present-and-gone-correctly.patch +++ b/input-xpad-handle-present-and-gone-correctly.patch @@ -69,14 +69,14 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> - usb_submit_urb(xpad->bulk_out, GFP_ATOMIC); - } else - xpad->pad_present = 0; -+ if (!xpad_present) { ++ if (!xpad->pad_present) { + xpad->pad_present = 1; + usb_submit_urb(xpad->bulk_out, GFP_ATOMIC); + INIT_WORK(&xpad->work, presence_work_function); + schedule_work(&xpad->work); + } + } else { -+ if (xpad->present) { ++ if (xpad->pad_present) { + xpad->pad_present = 0; + INIT_WORK(&xpad->work, presence_work_function); + schedule_work(&xpad->work); |
