From patchwork Thu Sep 17 16:36:47 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: 7209011 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 8B150BEEC1 for ; Thu, 17 Sep 2015 16:38:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6C61207C6 for ; Thu, 17 Sep 2015 16:38:53 +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 EB1F6207B0 for ; Thu, 17 Sep 2015 16:38:52 +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 1ZccBN-0002pB-4e; Thu, 17 Sep 2015 16:37:13 +0000 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZccBK-0002eC-6L for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2015 16:37:10 +0000 Received: by wicfx3 with SMTP id fx3so31648450wic.1 for ; Thu, 17 Sep 2015 09:36:48 -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=apdm5EowxeNAgTQ/FMj9+90IzYNsZ8KUeE1A3MkYCHQ=; b=GzIQY4+oEPxljJkWzRYfY4fVYIouJCcOm94bZuS/QxzGso431MZSuWuD/Lwn+KJQ0D oLis6VHy6klgD/muwb6391gRDnYWlbPNhhalUmbp2odFikVfvsXCAb5TJt/Pc92JKWpO p6D+awvCwfffqTS6weiXy0ZOXTNnTgUeIVZnN5sGoBxv6OHJXDtcJ2YzgA6U3G0zXpGR P+FRVKgOVxRKMK8HkztSSKR6686VRq0y8DDE5/4TewZKwK5mkxPMurwiFFI9+19MiiyN WXXdI9PQloiCCJNuCJpZRssv3C6/OVffIWtmhIrtY67JSGDUPuCa/yKfL947rWiijrI1 /vcQ== X-Received: by 10.194.113.1 with SMTP id iu1mr87320wjb.158.1442507808511; Thu, 17 Sep 2015 09:36:48 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id pu6sm4251602wjc.34.2015.09.17.09.36.47 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 17 Sep 2015 09:36:47 -0700 (PDT) From: Luis de Bethencourt X-Google-Original-From: Luis de Bethencourt Date: Thu, 17 Sep 2015 18:36:47 +0200 To: linux-kernel@vger.kernel.org Subject: [PATCH 4/4] i2c: stu300: Fix module autoload for OF platform driver Message-ID: <20150917163647.GA26265@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_093710_416210_6A096DEA X-CRM114-Status: GOOD ( 12.26 ) X-Spam-Score: -0.0 (/) 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: Linus Walleij , linux-i2c@vger.kernel.org, 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=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, SUSPICIOUS_RECIPS, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no 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 Acked-by: Linus Walleij --- drivers/i2c/busses/i2c-stu300.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-stu300.c b/drivers/i2c/busses/i2c-stu300.c index 4885da9..460c134 100644 --- a/drivers/i2c/busses/i2c-stu300.c +++ b/drivers/i2c/busses/i2c-stu300.c @@ -977,6 +977,7 @@ static const struct of_device_id stu300_dt_match[] = { { .compatible = "st,ddci2c" }, {}, }; +MODULE_DEVICE_TABLE(of, stu300_dt_match); static struct platform_driver stu300_i2c_driver = { .driver = {