commit | 56481f0060a48938e31461efa2ad54d3b293ebe8 | [log] [tgz] |
---|---|---|
author | David Härdeman <david@hardeman.nu> | Mon May 01 13:04:11 2017 -0300 |
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | Tue Jun 06 09:03:04 2017 -0300 |
tree | d079118090d9d53bcb97b4ca2b4c534fa957934f | |
parent | e0e3c77cc218d754eae9ddcc62d8ede5b31cf7c2 [diff] |
[media] lirc_dev: merge lirc_register_driver() and lirc_allocate_driver() Merging the two means that lirc_allocate_buffer() is called before device_add() and cdev_add() which makes more sense. This also simplifies the locking slightly because lirc_allocate_buffer() will always be called with lirc_dev_lock held. 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>