Skip to content

Commit

Permalink
V4L/DVB (11098): v4l2-common: remove incorrect MODULE test
Browse files Browse the repository at this point in the history
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: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 76717b8 commit d64260d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/video/v4l2-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,10 +797,10 @@ struct v4l2_subdev *v4l2_i2c_new_subdev(struct i2c_adapter *adapter,
struct i2c_board_info info;

BUG_ON(!dev);
#ifdef MODULE

if (module_name)
request_module(module_name);
#endif

/* Setup the i2c board info with the device type and
the device address. */
memset(&info, 0, sizeof(info));
Expand Down Expand Up @@ -850,10 +850,10 @@ struct v4l2_subdev *v4l2_i2c_new_probed_subdev(struct i2c_adapter *adapter,
struct i2c_board_info info;

BUG_ON(!dev);
#ifdef MODULE

if (module_name)
request_module(module_name);
#endif

/* Setup the i2c board info with the device type and
the device address. */
memset(&info, 0, sizeof(info));
Expand Down

0 comments on commit d64260d

Please sign in to comment.