From patchwork Wed Sep 16 07:43:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 7192321 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 3710FBEEC1 for ; Wed, 16 Sep 2015 07:46:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 565C8204D1 for ; Wed, 16 Sep 2015 07:46:06 +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 6EC63203C4 for ; Wed, 16 Sep 2015 07:46:05 +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 1Zc7OH-0006li-RG; Wed, 16 Sep 2015 07:44:29 +0000 Received: from lists.s-osg.org ([54.187.51.154]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zc7O5-0006It-K0 for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2015 07:44:18 +0000 Received: from minerva.sisa.samsung.com (209.51.23.95.dynamic.jazztel.es [95.23.51.209]) by lists.s-osg.org (Postfix) with ESMTPSA id 061E4462CB; Wed, 16 Sep 2015 00:43:51 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: sirf: Fix module autoloading for OF Date: Wed, 16 Sep 2015 09:43:45 +0200 Message-Id: <1442389425-27846-1-git-send-email-javier@osg.samsung.com> X-Mailer: git-send-email 2.4.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150916_004417_763355_3AFDDD4A X-CRM114-Status: UNSURE ( 8.32 ) 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: Fabio Estevam , Barry Song , Wei Chen , Masahiro Yamada , Linus Walleij , Javier Martinez Canillas , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, Thomas Gleixner , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= MIME-Version: 1.0 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Drivers needs to export the OF id table and this be built into the module or udev won't have the necessary information to auto load the driver module when the device is registered by OF. Signed-off-by: Javier Martinez Canillas --- drivers/pinctrl/sirf/pinctrl-atlas7.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/sirf/pinctrl-atlas7.c b/drivers/pinctrl/sirf/pinctrl-atlas7.c index 9df0c5f25824..dd6c9b7ac1ad 100644 --- a/drivers/pinctrl/sirf/pinctrl-atlas7.c +++ b/drivers/pinctrl/sirf/pinctrl-atlas7.c @@ -4304,6 +4304,7 @@ static const struct of_device_id atlas7_pinmux_ids[] = { { .compatible = "sirf,atlas7-ioc",}, {}, }; +MODULE_DEVICE_TABLE(of, atlas7_pinmux_ids); static struct platform_driver atlas7_pinmux_driver = { .driver = { @@ -4702,6 +4703,7 @@ static const struct of_device_id atlas7_gpio_ids[] = { { .compatible = "sirf,atlas7-gpio", }, {}, }; +MODULE_DEVICE_TABLE(of, atlas7_gpio_ids); static int atlas7_gpio_probe(struct platform_device *pdev) {