HID: sony: Fix work queue issues.
authorFrank Praznik <frank.praznik@oh.rr.com>
Wed, 19 Feb 2014 18:09:22 +0000 (13:09 -0500)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Feb 2014 13:14:03 +0000 (14:14 +0100)
commit5f5750d2e471866576225c3af28eedfadebb0765
tree2ffd790fd4a3e012ddcf6af6c4556e6a935a6b94
parent3ccfd0a8d7062a5590923578eea829ee582beba8
HID: sony: Fix work queue issues.

Don't initialize force-feedback for devices that don't support it to avoid calls
to schedule_work() with an uninitialized work_struct.

Move the cancel_work_sync() call out of sony_destroy_ff() since the state worker
is used for the LEDs even when force-feedback is disabled.

Remove sony_destroy_ff() to avoid a compiler warning since it is no longer used.

Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c