V4L/DVB (5440): Dvb-ttpci: Infrared remote initialization fix
authorOliver Endriss <o.endriss@gmx.de>
Tue, 13 Mar 2007 00:45:46 +0000 (21:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 27 Apr 2007 18:44:49 +0000 (15:44 -0300)
Fix bug introduced during infrared refactoring.
Thanks to Johann Friedrichs for spotting this.

Thanks-to: Johann Friedrichs <johann.friedrichs@web.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/ttpci/av7110_ir.c

index b7fd159..a97f166 100644 (file)
@@ -329,8 +329,8 @@ int __devinit av7110_ir_init(struct av7110 *av7110)
        if (av_cnt >= ARRAY_SIZE(av_list))
                return -ENOSPC;
 
-       av7110_check_ir_config(av7110, true);
        av_list[av_cnt++] = av7110;
+       av7110_check_ir_config(av7110, true);
 
        init_timer(&av7110->ir.keyup_timer);
        av7110->ir.keyup_timer.function = av7110_emit_keyup;