Skip to contentSkip to conversation

rc: sunxi-cir: support module autoloading

PATCH New Emilio López 3 participants 7 messages Feb 22, 2016 – Mar 3, 2016

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

PATCH 1/3 rc: sunxi-cir: support module autoloading

From: Emilio L?pez <[email protected]>

MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on systems supporting infrared. This commit adds the missing line so it works out of the box when built as a module and running on a sunxi system with an infrared receiver.

---
 drivers/media/rc/sunxi-cir.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/rc/sunxi-cir.c +1 -0
index 40f7768..eaadc08 100644
@@ -326,6 +326,7 @@ static const struct of_device_id sunxi_ir_match[] = {
 	{ .compatible = "allwinner,sun5i-a13-ir", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, sunxi_ir_match);
 
 static struct platform_driver sunxi_ir_driver = {
 	.probe          = sunxi_ir_probe,
Signature · 1 line
2.7.1
#1 lore raw

PATCH 2/3 dmaengine: sun4i: support module autoloading

From: Emilio L?pez <[email protected]>

MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on supported systems. This commit adds the missing line so it loads automatically when building it as a module and running on a system with the early sunxi DMA engine.

---
 drivers/dma/sun4i-dma.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma/sun4i-dma.c +1 -0
index 1661d518..e0df233 100644
@@ -1271,6 +1271,7 @@ static const struct of_device_id sun4i_dma_match[] = {
 	{ .compatible = "allwinner,sun4i-a10-dma" },
 	{ /* sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, sun4i_dma_match);
 
 static struct platform_driver sun4i_dma_driver = {
 	.probe	= sun4i_dma_probe,
Signature · 1 line
2.7.1
#2 lore raw

PATCH 2/3 dmaengine: sun4i: support module autoloading

Hello Emilio,

Quoted 9 lines · Emilio L?pez

From: Emilio L?pez <[email protected]>

MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on supported systems. This commit adds the missing line so it loads automatically when building it as a module and running on a system with the early sunxi DMA engine.

---

Best regards,
Javier

Applied
#3 lore raw

PATCH 2/3 dmaengine: sun4i: support module autoloading

In reply to Emilio López
Quoted 6 lines · Emilio López

From: Emilio López <[email protected]>

MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on supported systems. This commit adds the missing line so it loads automatically when building it as a module and running on a system with the early sunxi DMA engine.

Applied, thanks

Signature · 1 line
~Vinod
#4 lore raw

PATCH 3/3 usb: musb: sunxi: support module autoloading

In reply to Emilio López

From: Emilio L?pez <[email protected]>

MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on sunxi systems using the OTG controller. This commit adds the missing line so it loads automatically when building it as a module and running on a system with an USB OTG port.

---
 drivers/usb/musb/sunxi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/musb/sunxi.c +1 -0
index d9b0dc4..fdab423 100644
@@ -752,6 +752,7 @@ static const struct of_device_id sunxi_musb_match[] = {
 	{ .compatible = "allwinner,sun8i-a33-musb", },
 	{}
 };
+MODULE_DEVICE_TABLE(of, sunxi_musb_match);
 
 static struct platform_driver sunxi_musb_driver = {
 	.probe = sunxi_musb_probe,
Signature · 1 line
2.7.1
#5 lore raw

PATCH 3/3 usb: musb: sunxi: support module autoloading

Hello Emilio,

Quoted 9 lines · Emilio L?pez

From: Emilio L?pez <[email protected]>

MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on sunxi systems using the OTG controller. This commit adds the missing line so it loads automatically when building it as a module and running on a system with an USB OTG port.

---

Best regards,
Javier

#6 lore raw

PATCH 1/3 rc: sunxi-cir: support module autoloading

In reply to Emilio López

Hello Emilio,

Quoted 8 lines · Emilio L?pez

From: Emilio L?pez <[email protected]>

MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on systems supporting infrared. This commit adds the missing line so it works out of the box when built as a module and running on a sunxi system with an infrared receiver.

Looks good to me.

Best regards,
Javier