[media] rc-core: cleanup rc_register_device
authorDavid Härdeman <david@hardeman.nu>
Wed, 3 May 2017 10:04:00 +0000 (07:04 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 13 Jun 2017 16:53:50 +0000 (13:53 -0300)
commitf56928abaa6d73613d21f0cdcb7fd0b7f339b5bd
tree00687fb28a2795fa2cb13e49d7c96893bf90c54e
parent6709e03cbaad4190565ff52bb26e6b90da5d98af
[media] rc-core: cleanup rc_register_device

The device core infrastructure is based on the presumption that
once a driver calls device_add(), it must be ready to accept
userspace interaction.

This requires splitting rc_setup_rx_device() into two functions
and reorganizing rc_register_device() so that as much work
as possible is performed before calling device_add().

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/rc-core-priv.h
drivers/media/rc/rc-ir-raw.c
drivers/media/rc/rc-main.c