]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[media] vpfe_capture: Don't use module names to load I2C modules
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 24 Sep 2010 12:05:13 +0000 (09:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 22 Oct 2010 23:54:03 +0000 (21:54 -0200)
With the v4l2_i2c_new_subdev* functions now supporting loading modules
based on modaliases, don't use the module names hardcoded in platform
data by passing a NULL module name to those functions.

All corresponding I2C modules have been checked, and all of them include
a module aliases table with names corresponding to what the vpfe_capture
platform data uses.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/davinci/vpfe_capture.c

index cd068de9fc20ad13f96286482bc21f93ecc1d370..d8e38cc4ec40c8b1a7dd8803f3d6e6b8e0d95bff 100644 (file)
@@ -1986,7 +1986,7 @@ static __init int vpfe_probe(struct platform_device *pdev)
                vpfe_dev->sd[i] =
                        v4l2_i2c_new_subdev_board(&vpfe_dev->v4l2_dev,
                                                  i2c_adap,
-                                                 sdinfo->name,
+                                                 NULL,
                                                  &sdinfo->board_info,
                                                  NULL);
                if (vpfe_dev->sd[i]) {