Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 728f9778 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] em28xx: autoload em28xx-rc if the device has an I2C IR



If the device has an I2C IR, em28xx-rc should be loaded by default,
except if the user explicitly requested to not load, via modprobe
option.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 8303dc99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2912,7 +2912,7 @@ static void request_module_async(struct work_struct *work)

	if (dev->board.has_dvb)
		request_module("em28xx-dvb");
	if (dev->board.ir_codes && !disable_ir)
	if ((dev->board.ir_codes || dev->board.has_ir_i2c) && !disable_ir)
		request_module("em28xx-rc");
#endif /* CONFIG_MODULES */
}