[media] lirc_dev: clarify error handling
authorDavid Härdeman <david@hardeman.nu>
Mon, 1 May 2017 16:04:01 +0000 (13:04 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 12:01:29 +0000 (09:01 -0300)
commit258232269590cee2acd4bb28b8e027ad340a85f9
treeab6e8a6466c55c5b31d8ba3c10675cf81f927dcd
parentc3104e1b42744156c414003043587d128de2b91f
[media] lirc_dev: clarify error handling

out_sysfs is misleading, sysfs only comes into play after device_add().
Also, calling device_init() before the rest of struct dev is filled out
is clearer.

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/lirc_dev.c