mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-13 12:49:35 +02:00
iommu: mtk: fix module autoloading
[ Upstream commit 7537e31df8
]
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20240410164109.233308-1-krzk@kernel.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
08bedfbc1b
commit
055ea43860
|
@ -1773,6 +1773,7 @@ static const struct of_device_id mtk_iommu_of_ids[] = {
|
||||||
{ .compatible = "mediatek,mt8365-m4u", .data = &mt8365_data},
|
{ .compatible = "mediatek,mt8365-m4u", .data = &mt8365_data},
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, mtk_iommu_of_ids);
|
||||||
|
|
||||||
static struct platform_driver mtk_iommu_driver = {
|
static struct platform_driver mtk_iommu_driver = {
|
||||||
.probe = mtk_iommu_probe,
|
.probe = mtk_iommu_probe,
|
||||||
|
|
|
@ -600,6 +600,7 @@ static const struct of_device_id mtk_iommu_v1_of_ids[] = {
|
||||||
{ .compatible = "mediatek,mt2701-m4u", },
|
{ .compatible = "mediatek,mt2701-m4u", },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, mtk_iommu_v1_of_ids);
|
||||||
|
|
||||||
static const struct component_master_ops mtk_iommu_v1_com_ops = {
|
static const struct component_master_ops mtk_iommu_v1_com_ops = {
|
||||||
.bind = mtk_iommu_v1_bind,
|
.bind = mtk_iommu_v1_bind,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user