rc-main.c (35bb28ece90dfb7f72b77ba529f25f79323d9581) | rc-main.c (f09f9f93afad770a04b35235a0aa465fcc8d6e3d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// rc-main.c - Remote Controller core module 3// 4// Copyright (C) 2009-2010 by Mauro Carvalho Chehab 5 6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 7 8#include <media/rc-core.h> --- 2055 unchanged lines hidden (view full) --- 2064 if (rc) { 2065 pr_err("rc_core: unable to init lirc\n"); 2066 class_unregister(&rc_class); 2067 return rc; 2068 } 2069 2070 led_trigger_register_simple("rc-feedback", &led_feedback); 2071 rc_map_register(&empty_map); | 1// SPDX-License-Identifier: GPL-2.0 2// rc-main.c - Remote Controller core module 3// 4// Copyright (C) 2009-2010 by Mauro Carvalho Chehab 5 6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 7 8#include <media/rc-core.h> --- 2055 unchanged lines hidden (view full) --- 2064 if (rc) { 2065 pr_err("rc_core: unable to init lirc\n"); 2066 class_unregister(&rc_class); 2067 return rc; 2068 } 2069 2070 led_trigger_register_simple("rc-feedback", &led_feedback); 2071 rc_map_register(&empty_map); |
2072#ifdef CONFIG_MEDIA_CEC_RC 2073 rc_map_register(&cec_map); 2074#endif |
|
2072 2073 return 0; 2074} 2075 2076static void __exit rc_core_exit(void) 2077{ 2078 lirc_dev_exit(); 2079 class_unregister(&rc_class); 2080 led_trigger_unregister_simple(led_feedback); | 2075 2076 return 0; 2077} 2078 2079static void __exit rc_core_exit(void) 2080{ 2081 lirc_dev_exit(); 2082 class_unregister(&rc_class); 2083 led_trigger_unregister_simple(led_feedback); |
2084#ifdef CONFIG_MEDIA_CEC_RC 2085 rc_map_unregister(&cec_map); 2086#endif |
|
2081 rc_map_unregister(&empty_map); 2082} 2083 2084subsys_initcall(rc_core_init); 2085module_exit(rc_core_exit); 2086 2087MODULE_AUTHOR("Mauro Carvalho Chehab"); 2088MODULE_LICENSE("GPL v2"); | 2087 rc_map_unregister(&empty_map); 2088} 2089 2090subsys_initcall(rc_core_init); 2091module_exit(rc_core_exit); 2092 2093MODULE_AUTHOR("Mauro Carvalho Chehab"); 2094MODULE_LICENSE("GPL v2"); |