2024-04-10 17:04:39

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH 1/2] dmaengine: ti: k3-udma: fix module autoloading

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 <[email protected]>
---
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.34.1



2024-04-10 17:16:07

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH 2/2] dmaengine: xilinx: xdma: fix module autoloading

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 <[email protected]>
---
drivers/dma/xilinx/xdma.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/dma/xilinx/xdma.c b/drivers/dma/xilinx/xdma.c
index 170017ff2aad..36e3f84a31fc 100644
--- a/drivers/dma/xilinx/xdma.c
+++ b/drivers/dma/xilinx/xdma.c
@@ -1295,6 +1295,7 @@ static const struct platform_device_id xdma_id_table[] = {
{ "xdma", 0},
{ },
};
+MODULE_DEVICE_TABLE(platform, xdma_id_table);

static struct platform_driver xdma_driver = {
.driver = {
--
2.34.1


2024-04-25 09:19:38

by Vinod Koul

[permalink] [raw]
Subject: Re: (subset) [PATCH 1/2] dmaengine: ti: k3-udma: fix module autoloading


On Wed, 10 Apr 2024 19:03:16 +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!

[2/2] dmaengine: xilinx: xdma: fix module autoloading
commit: 700b2e1eccb4490752227d4339c3d2c3d52d06a7

Best regards,
--
~Vinod