Skip to contentSkip to conversation

imx2_wdt: expose module alias for loading from device-tree

PATCH In review Niels de Vos 3 participants 3 messages Jul 29, 2013 – Oct 29, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx2_wdt: expose module alias for loading from device-tree

Enable auto loading by udev when imx2_wdt is compiled as a module.

---
 drivers/watchdog/imx2_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/imx2_wdt.c +1 -0
index 693ac3f..17680aa 100644
@@ -322,6 +322,7 @@ static const struct of_device_id imx2_wdt_dt_ids[] = {
 	{ .compatible = "fsl,imx21-wdt", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, imx2_wdt_dt_ids);
 
 static struct platform_driver imx2_wdt_driver = {
 	.remove		= __exit_p(imx2_wdt_remove),
Signature · 1 line
1.7.11.7
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Niels de Vos

Enable auto loading by udev when imx2_wdt is compiled as a module.

Quoted 19 lines
---
 drivers/watchdog/imx2_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/imx2_wdt.c +1 -0
index 693ac3f..17680aa 100644
@@ -322,6 +322,7 @@ static const struct of_device_id imx2_wdt_dt_ids[] = {
 	{ .compatible = "fsl,imx21-wdt", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, imx2_wdt_dt_ids);
 
 static struct platform_driver imx2_wdt_driver = {
 	.remove		= __exit_p(imx2_wdt_remove),
Signature · 1 line
1.7.11.7
#2 lore raw
In reply to Niels de Vos

Hi Niels,

Quoted 13 lines

Enable auto loading by udev when imx2_wdt is compiled as a module.

---
 drivers/watchdog/imx2_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/imx2_wdt.c +0 -0
index 693ac3f..17680aa 100644

drivers/watchdog/imx2_wdt.c static const struct of_device_id imx2_wdt_dt_ids[] = { · line 328

Quoted 7 lines
drivers/watchdog/imx2_wdt.c +1 -0
@@ -322,6 +322,7 @@ static const struct of_device_id imx2_wdt_dt_ids[] = {
 	{ .compatible = "fsl,imx21-wdt", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, imx2_wdt_dt_ids);
 
 static struct platform_driver imx2_wdt_driver = {
 	.remove		= __exit_p(imx2_wdt_remove),

This has been added to linux-watchdog-next.

Kind regards,
Wim.