From: Mauro Carvalho Chehab Date: Fri, 6 Jul 2012 01:52:34 +0000 (-0300) Subject: [media] em28xx: fix em28xx-rc load X-Git-Tag: next-20120724~79^2~6^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6283840142f05ae17118cf5d7e0ec6b66a42f662;p=karo-tx-linux.git [media] em28xx: fix em28xx-rc load The logic that checks if a device has remote control is wrong. Due to that, the em28xx RC module is not loaded by default. Fix the logic, in order to make it work properly. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 92da7c28b6f0..862c6575c557 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c @@ -2893,7 +2893,7 @@ static void request_module_async(struct work_struct *work) if (dev->board.has_dvb) request_module("em28xx-dvb"); - if (dev->board.has_ir_i2c && !disable_ir) + if (dev->board.ir_codes && !disable_ir) request_module("em28xx-rc"); }