[media] rc/imon: fix ffdc device detection oops
authorJarod Wilson <jarod@redhat.com>
Thu, 6 Jan 2011 19:57:14 +0000 (16:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:45:49 +0000 (11:45 -0200)
commit7d2edfc23e9852591cb031a26093cdcd07a34a90
treeef8716911d93743d0378552498203db6194dfb5c
parente95342f168f7a02441cec51b222bb7ae62df364d
[media] rc/imon: fix ffdc device detection oops

There's a nasty bug that slipped in when the rc device interface was
altered, only affecting the older 0xffdc imon devices. We were trying
to access ictx->rdev->allowed_protos before ictx->rdev had been set.

There's also an issue with call ordering that meant the correct
keymap wasn't getting loaded for MCE IR type 0xffdc devices.

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