diff options
Diffstat (limited to 'include/media/ir-core.h')
-rw-r--r-- | include/media/ir-core.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h index 513e60dd1010..197d05aa83dc 100644 --- a/include/media/ir-core.h +++ b/include/media/ir-core.h | |||
@@ -110,8 +110,12 @@ static inline int ir_input_register(struct input_dev *dev, | |||
110 | return -EINVAL; | 110 | return -EINVAL; |
111 | 111 | ||
112 | ir_codes = get_rc_map(map_name); | 112 | ir_codes = get_rc_map(map_name); |
113 | if (!ir_codes) | 113 | if (!ir_codes) { |
114 | return -EINVAL; | 114 | ir_codes = get_rc_map(RC_MAP_EMPTY); |
115 | |||
116 | if (!ir_codes) | ||
117 | return -EINVAL; | ||
118 | } | ||
115 | 119 | ||
116 | rc = __ir_input_register(dev, ir_codes, props, driver_name); | 120 | rc = __ir_input_register(dev, ir_codes, props, driver_name); |
117 | if (rc < 0) | 121 | if (rc < 0) |