]> git.karo-electronics.de Git - linux-beck.git/commit
[media] lirc_dev: fix pointer to owner
authorJarod Wilson <jarod@redhat.com>
Sun, 17 Oct 2010 00:32:44 +0000 (21:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 22 Oct 2010 22:05:35 +0000 (20:05 -0200)
commit90dc4cfa2076cdc4df4c2f5dd3cadeefd9557c2c
tree9e8338bff820643e1d84f8f9db5044fcf185e79f
parent578fcb8e5f3046493932105c404792a2fe0e066f
[media] lirc_dev: fix pointer to owner

If an lirc device driver doesn't specify its own fops, we set set
ir->cdev.owner to THIS_MODULE. If it does specify its own fops, we
set ir->cdev.owner to ir->d.owner. Subsequent module_{get,put} calls
should be using ir->cdev.owner, not ir->d.owner.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/lirc_dev.c