Skip to content

Commit 7537e31

Browse files
krzkjoergroedel
authored andcommitted
iommu: mtk: fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent b650b38 commit 7537e31

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/iommu/mtk_iommu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,7 @@ static const struct of_device_id mtk_iommu_of_ids[] = {
17901790
{ .compatible = "mediatek,mt8365-m4u", .data = &mt8365_data},
17911791
{}
17921792
};
1793+
MODULE_DEVICE_TABLE(of, mtk_iommu_of_ids);
17931794

17941795
static struct platform_driver mtk_iommu_driver = {
17951796
.probe = mtk_iommu_probe,

drivers/iommu/mtk_iommu_v1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ static const struct of_device_id mtk_iommu_v1_of_ids[] = {
600600
{ .compatible = "mediatek,mt2701-m4u", },
601601
{}
602602
};
603+
MODULE_DEVICE_TABLE(of, mtk_iommu_v1_of_ids);
603604

604605
static const struct component_master_ops mtk_iommu_v1_com_ops = {
605606
.bind = mtk_iommu_v1_bind,

0 commit comments

Comments
 (0)