From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752705AbbIPHn5 (ORCPT ); Wed, 16 Sep 2015 03:43:57 -0400 Received: from lists.s-osg.org ([54.187.51.154]:36379 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524AbbIPHnz (ORCPT ); Wed, 16 Sep 2015 03:43:55 -0400 From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Javier Martinez Canillas , Fabio Estevam , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , Masahiro Yamada , Linus Walleij , Thomas Gleixner , linux-gpio@vger.kernel.org, Barry Song , Wei Chen , linux-arm-kernel@lists.infradead.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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { -- 2.4.3