From patchwork Thu Sep 17 16:36:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis de Bethencourt X-Patchwork-Id: 7209001 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5F37DBEEC1 for ; Thu, 17 Sep 2015 16:38:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 77E9B207B0 for ; Thu, 17 Sep 2015 16:38:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BB25E2039C for ; Thu, 17 Sep 2015 16:38:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZccAm-0002Yx-JY; Thu, 17 Sep 2015 16:36:36 +0000 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZccAk-0002Sa-59; Thu, 17 Sep 2015 16:36:34 +0000 Received: by wicge5 with SMTP id ge5so126574677wic.0; Thu, 17 Sep 2015 09:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:date:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=2TJVm6tE0Nr6cNQF+Ya7vwBkFzOWAmv8JgvzC+ta7SU=; b=bV/larTH1YLvc696s74Xo2uuxWDLCY3395oJuzaSUkB9ZgnQOCZWLLGHmdSWuewpQo gDmcy1rG7caMhclg8sr4HTKGAnWYe80mjFalakDIcp7CX9TGorBmErBFcx+ZgYdanjF5 JUuJFKP3NIMjaEaDMvahhQn9BVq8GLlDQLnAXgUa3fpsspBQ2Ket8YYA8rUWCa5Fycum iEE2De6ybSPomr54ftxVdkjLOhfprR0mvwgMExo82kpR6rPsyXGE3mG8AlJSdpKFmhwy k8DsWT+JchWld4QO+ncEvBFlOREs079wkkAVYHVVkKp/WCVz4Uzh0rvPK3A/323RJTDS y6EQ== X-Received: by 10.194.121.202 with SMTP id lm10mr115379wjb.98.1442507772502; Thu, 17 Sep 2015 09:36:12 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id 12sm4270250wjw.15.2015.09.17.09.36.11 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 17 Sep 2015 09:36:11 -0700 (PDT) From: Luis de Bethencourt X-Google-Original-From: Luis de Bethencourt Date: Thu, 17 Sep 2015 18:36:11 +0200 To: linux-kernel@vger.kernel.org Subject: [PATCH 3/4] i2c: rk3x: Fix module autoload for OF platform driver Message-ID: <20150917163611.GA26214@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150917_093634_370876_BD96EA41 X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-i2c@vger.kernel.org, linux-rockchip@lists.infradead.org, Heiko Stuebner , linux-arm-kernel@lists.infradead.org, Wolfram Sang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt --- drivers/i2c/busses/i2c-rk3x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c index 72e97e30..c1935eb 100644 --- a/drivers/i2c/busses/i2c-rk3x.c +++ b/drivers/i2c/busses/i2c-rk3x.c @@ -858,6 +858,7 @@ static const struct of_device_id rk3x_i2c_match[] = { { .compatible = "rockchip,rk3288-i2c", .data = (void *)&soc_data[2] }, {}, }; +MODULE_DEVICE_TABLE(of, rk3x_i2c_match); static int rk3x_i2c_probe(struct platform_device *pdev) {