[media] media: rc: move check whether a protocol is enabled to the core
[deliverable/linux.git] / drivers / media / rc / ir-rc5-decoder.c
index 84fa6e9b59a1acd9360364fbd30ca0a4e00d3a56..6ffe776abf6bd5c8d1a2553532437db7156ff9d4 100644 (file)
@@ -53,9 +53,6 @@ static int ir_rc5_decode(struct rc_dev *dev, struct ir_raw_event ev)
        u32 scancode;
        enum rc_type protocol;
 
-       if (!(dev->enabled_protocols & (RC_BIT_RC5 | RC_BIT_RC5X | RC_BIT_RC5_SZ)))
-               return 0;
-
        if (!is_timing_event(ev)) {
                if (ev.reset)
                        data->state = STATE_INACTIVE;
This page took 0.025728 seconds and 5 git commands to generate.