diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-11-08 16:28:45 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:41 -0500 |
commit | 56411f49f69140b97e259256b99dc276f2b2b427 (patch) | |
tree | 04b8c84ca48e71f36fed5cae293d3b70e5e28b58 /drivers/media/dvb/firewire/firedtv-rc.c | |
parent | b921d929f4a012be3e809fbb1ff1e8e6c0751c06 (diff) |
V4L/DVB (13397): firedtv: move remote control workqueue handling into rc source file
Preparation for the port of firedtv to the firewire-core kernel API:
Canceling of the remote control workqueue job is factored into
firedtv-rc.c. Plus trivial whitespace change.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/firewire/firedtv-rc.c')
-rw-r--r-- | drivers/media/dvb/firewire/firedtv-rc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/firewire/firedtv-rc.c b/drivers/media/dvb/firewire/firedtv-rc.c index 27bca2e283df..599d66e5843d 100644 --- a/drivers/media/dvb/firewire/firedtv-rc.c +++ b/drivers/media/dvb/firewire/firedtv-rc.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include <linux/string.h> | 15 | #include <linux/string.h> |
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | #include <linux/workqueue.h> | ||
17 | 18 | ||
18 | #include "firedtv.h" | 19 | #include "firedtv.h" |
19 | 20 | ||
@@ -163,6 +164,7 @@ fail: | |||
163 | 164 | ||
164 | void fdtv_unregister_rc(struct firedtv *fdtv) | 165 | void fdtv_unregister_rc(struct firedtv *fdtv) |
165 | { | 166 | { |
167 | cancel_work_sync(&fdtv->remote_ctrl_work); | ||
166 | kfree(fdtv->remote_ctrl_dev->keycode); | 168 | kfree(fdtv->remote_ctrl_dev->keycode); |
167 | input_unregister_device(fdtv->remote_ctrl_dev); | 169 | input_unregister_device(fdtv->remote_ctrl_dev); |
168 | } | 170 | } |