[media] lirc_dev: rework storage for cdev data
authorJarod Wilson <jarod@redhat.com>
Mon, 18 Oct 2010 21:39:20 +0000 (18:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 22 Oct 2010 22:05:36 +0000 (20:05 -0200)
commitc1cbb7029e81894c056680d61c64741bd2ff246f
tree99a96186dae129398300db241fbf5eff6bfd7d44
parent09c8dd8de67cf781be95d809cd45af22f40c37df
[media] lirc_dev: rework storage for cdev data

Fixes an oops when an lirc driver that doesn't provide its own fops is
unplugged while the lirc cdev is open. Tested with lirc_igorplugusb,
with a special thanks to Timo Boettcher for providing the test hardware.

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