提交 d64260d5 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

V4L/DVB (11098): v4l2-common: remove incorrect MODULE test

v4l2-common doesn't have to be a module for it to call request_module().
Just remove that test.

Thanks-to: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 76717b88
...@@ -797,10 +797,10 @@ struct v4l2_subdev *v4l2_i2c_new_subdev(struct i2c_adapter *adapter, ...@@ -797,10 +797,10 @@ struct v4l2_subdev *v4l2_i2c_new_subdev(struct i2c_adapter *adapter,
struct i2c_board_info info; struct i2c_board_info info;
BUG_ON(!dev); BUG_ON(!dev);
#ifdef MODULE
if (module_name) if (module_name)
request_module(module_name); request_module(module_name);
#endif
/* Setup the i2c board info with the device type and /* Setup the i2c board info with the device type and
the device address. */ the device address. */
memset(&info, 0, sizeof(info)); memset(&info, 0, sizeof(info));
...@@ -850,10 +850,10 @@ struct v4l2_subdev *v4l2_i2c_new_probed_subdev(struct i2c_adapter *adapter, ...@@ -850,10 +850,10 @@ struct v4l2_subdev *v4l2_i2c_new_probed_subdev(struct i2c_adapter *adapter,
struct i2c_board_info info; struct i2c_board_info info;
BUG_ON(!dev); BUG_ON(!dev);
#ifdef MODULE
if (module_name) if (module_name)
request_module(module_name); request_module(module_name);
#endif
/* Setup the i2c board info with the device type and /* Setup the i2c board info with the device type and
the device address. */ the device address. */
memset(&info, 0, sizeof(info)); memset(&info, 0, sizeof(info));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册