Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1225808 > unrolled thread

[PATCH] pinctrl: sirf: Fix module autoloading for OF

Started byJavier Martinez Canillas <javier@osg.samsung.com>
First post2015-09-16 09:50 +0200
Last post2015-09-16 10:00 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] pinctrl: sirf: Fix module autoloading for OF Javier Martinez Canillas <javier@osg.samsung.com> - 2015-09-16 09:50 +0200
    Re: [PATCH] pinctrl: sirf: Fix module autoloading for OF Javier Martinez Canillas <javier@osg.samsung.com> - 2015-09-16 10:00 +0200

#1225808 — [PATCH] pinctrl: sirf: Fix module autoloading for OF

FromJavier Martinez Canillas <javier@osg.samsung.com>
Date2015-09-16 09:50 +0200
Subject[PATCH] pinctrl: sirf: Fix module autoloading for OF
Message-ID<q9fDB-6qt-31@gated-at.bofh.it>
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 <javier@osg.samsung.com>

---

 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1225809

FromJavier Martinez Canillas <javier@osg.samsung.com>
Date2015-09-16 10:00 +0200
Message-ID<q9fNf-6BN-3@gated-at.bofh.it>
In reply to#1225808
Hello,

On 09/16/2015 09:43 AM, Javier Martinez Canillas wrote:
> 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 <javier@osg.samsung.com>
> 

Just found out that PINCTRL_SIRF is a boolean Kconfig symbol and not
a tristate one so it can't be built as a module. Sorry for the noise.

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web