[RESEND PATCH] dmaengine: ti: k3-udma: fix module autoloading

Krzysztof Kozlowski posted 1 patch 1 year, 8 months ago
drivers/dma/ti/k3-udma.c | 1 +
1 file changed, 1 insertion(+)
[RESEND PATCH] dmaengine: ti: k3-udma: fix module autoloading
Posted by Krzysztof Kozlowski 1 year, 8 months ago
From: Krzysztof Kozlowski <krzk@kernel.org>

Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/dma/ti/k3-udma.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c
index 6400d06588a2..d7259caa0200 100644
--- a/drivers/dma/ti/k3-udma.c
+++ b/drivers/dma/ti/k3-udma.c
@@ -4405,6 +4405,7 @@ static const struct of_device_id udma_of_match[] = {
 	},
 	{ /* Sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, udma_of_match);
 
 static struct udma_soc_data am654_soc_data = {
 	.oes = {
-- 
2.43.0
Re: [RESEND PATCH] dmaengine: ti: k3-udma: fix module autoloading
Posted by Vinod Koul 1 year, 8 months ago
On Tue, 04 Jun 2024 15:07:14 +0200, Krzysztof Kozlowski wrote:
> Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
> based on the alias from of_device_id table.
> 
> 

Applied, thanks!

[1/1] dmaengine: ti: k3-udma: fix module autoloading
      commit: a5dc404213192229aeac362bdca0b5fa95a42c2d

Best regards,
-- 
Vinod Koul <vkoul@kernel.org>