diff options
author | Mauro Carvalho Chehab | 2012-01-10 12:20:01 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2012-01-11 01:35:29 +0100 |
commit | 7528cd273e14020117e6cdb6cc307f223e97c5ed (patch) | |
tree | 872fdcc3f4f8d7349befe6c2a10f079962438827 /drivers/media/video/ir-kbd-i2c.c | |
parent | [media] mb86a20s: implement get_frontend() (diff) | |
download | kernel-qcow2-linux-7528cd273e14020117e6cdb6cc307f223e97c5ed.tar.gz kernel-qcow2-linux-7528cd273e14020117e6cdb6cc307f223e97c5ed.tar.xz kernel-qcow2-linux-7528cd273e14020117e6cdb6cc307f223e97c5ed.zip |
[media] cx231xx: Fix unregister logic
There are several weirdness at the unregister logic.
First of all, IR has a poll thread. This thread needs to be
removed, as it uses some resources associated to the main driver.
So, the driver needs to explicitly unregister the I2C client for
ir-kbd-i2c.
If, for some reason, the driver needs to wait for a close()
to happen, not all memories will be freed, because the free
logic were in the wrong place.
Also, v4l2_device_unregister() seems to be called too early,
as devices are still using it.
Finally, even with the device disconnected, there is one
USB function call that will still try to talk with it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ir-kbd-i2c.c')
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index 37d0c2012519..a7c41d32f414 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c @@ -498,11 +498,3 @@ static void __exit ir_fini(void) module_init(ir_init); module_exit(ir_fini); - -/* - * Overrides for Emacs so that we follow Linus's tabbing style. - * --------------------------------------------------------------------------- - * Local variables: - * c-basic-offset: 8 - * End: - */ |