]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] em28xx: fix em28xx-rc load
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 01:52:34 +0000 (22:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 02:12:25 +0000 (23:12 -0300)
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 <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-cards.c

index 92da7c28b6f096f9f7c37a79aef39cdd126aae5a..862c6575c55791fa7a6f4488d7cd933226fd02cb 100644 (file)
@@ -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");
 }