Skip to contentSkip to conversation

dmaengine: sprd: Add missing MODULE_DEVICE_TABLE

PATCH Applied Zou Wei 3 participants 3 messages May 4, 2021 – May 10, 2021

Subsystems (2)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 dmaengine: sprd: Add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

---
 drivers/dma/sprd-dma.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma/sprd-dma.c +1 -0
index 0ef5ca8..4357d23 100644
@@ -1265,6 +1265,7 @@ static const struct of_device_id sprd_dma_match[] = {
 	{ .compatible = "sprd,sc9860-dma", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, sprd_dma_match);
 
 static int __maybe_unused sprd_dma_runtime_suspend(struct device *dev)
 {
Signature · 1 line
2.6.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Zou Wei

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

Quoted 19 lines
---
 drivers/dma/sprd-dma.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma/sprd-dma.c +1 -1
index 0ef5ca8..4357d23 100644
@@ -1265,6 +1265,7 @@ static const struct of_device_id sprd_dma_match[] = {
        { .compatible = "sprd,sc9860-dma", },
        {},
 };
+MODULE_DEVICE_TABLE(of, sprd_dma_match);
 
 static int __maybe_unused sprd_dma_runtime_suspend(struct device *dev)
 {
--

2.6.2

Signature · 1 line
Baolin Wang
maintainer Applied
#2 lore raw
In reply to Zou Wei
Quoted 3 lines · Zou Wei

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

Applied, thanks

Signature · 1 line
~Vinod