From patchwork Fri Sep 24 14:13:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 204642 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8OEF4Wf010324 for ; Fri, 24 Sep 2010 14:15:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932306Ab0IXOOi (ORCPT ); Fri, 24 Sep 2010 10:14:38 -0400 Received: from perceval.irobotique.be ([92.243.18.41]:60392 "EHLO perceval.irobotique.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932298Ab0IXOOh (ORCPT ); Fri, 24 Sep 2010 10:14:37 -0400 Received: from localhost.localdomain (unknown [91.178.47.217]) by perceval.irobotique.be (Postfix) with ESMTPSA id 0D46535DA3; Fri, 24 Sep 2010 14:14:36 +0000 (UTC) From: Laurent Pinchart To: linux-media@vger.kernel.org Cc: Hans Verkuil , Jean Delvare , Guennadi Liakhovetski , Pete Eberlein , Mike Isely , Eduardo Valentin , Andy Walls , Vaibhav Hiremath , Muralidharan Karicheri Subject: [PATCH 01/16] v4l: Load I2C modules based on modalias Date: Fri, 24 Sep 2010 16:13:59 +0200 Message-Id: <1285337654-5044-2-git-send-email-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 1.7.2.2 In-Reply-To: <1285337654-5044-1-git-send-email-laurent.pinchart@ideasonboard.com> References: <1285337654-5044-1-git-send-email-laurent.pinchart@ideasonboard.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 24 Sep 2010 14:15:05 +0000 (UTC) diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c index 3ce7c64..120b4ac 100644 --- a/drivers/media/video/v4l2-common.c +++ b/drivers/media/video/v4l2-common.c @@ -378,6 +378,8 @@ struct v4l2_subdev *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev, if (module_name) request_module(module_name); + else + request_module(I2C_MODULE_PREFIX "%s", info->type); /* Create the i2c client */ if (info->addr == 0 && probe_addrs)