Skip to content

Commit

Permalink
[media] em28xx: fix em28xx-rc load
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jul 6, 2012
1 parent 82163ed commit 4dab0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 4dab0e5

Please sign in to comment.