Skip to content

Commit

Permalink
V4L/DVB (12495): em28xx: Don't call em28xx_ir_init when disable_ir is…
Browse files Browse the repository at this point in the history
… true

We should call em28xx_ir_init(dev) only when disable_ir is true.

Signed-off-by: Shine Liu <shinel@foxmail.com>
Reviewed-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Shine Liu authored and Mauro Carvalho Chehab committed Aug 31, 2009
1 parent 7b80892 commit f4c5e80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -2382,7 +2382,9 @@ void em28xx_card_setup(struct em28xx *dev)
}

em28xx_tuner_setup(dev);
em28xx_ir_init(dev);

if(!disable_ir)
em28xx_ir_init(dev);
}


Expand Down

0 comments on commit f4c5e80

Please sign in to comment.