Commit 7537e31d authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Joerg Roedel
Browse files

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: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20240410164109.233308-1-krzk@kernel.org


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent b650b38b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1790,6 +1790,7 @@ static const struct of_device_id mtk_iommu_of_ids[] = {
	{ .compatible = "mediatek,mt8365-m4u", .data = &mt8365_data},
	{}
};
MODULE_DEVICE_TABLE(of, mtk_iommu_of_ids);

static struct platform_driver mtk_iommu_driver = {
	.probe	= mtk_iommu_probe,
+1 −0
Original line number Diff line number Diff line
@@ -600,6 +600,7 @@ static const struct of_device_id mtk_iommu_v1_of_ids[] = {
	{ .compatible = "mediatek,mt2701-m4u", },
	{}
};
MODULE_DEVICE_TABLE(of, mtk_iommu_v1_of_ids);

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