iommu: mtk: fix module autoloading
[ Upstream commit 7537e31df80cb58c27f3b6fef702534ea87a5957 ] 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
2f622008bf
commit
3aba6c4ec5
@ -1570,6 +1570,7 @@ static const struct of_device_id mtk_iommu_of_ids[] = {
|
||||
{ .compatible = "mediatek,mt8195-iommu-vpp", .data = &mt8195_data_vpp},
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, mtk_iommu_of_ids);
|
||||
|
||||
static struct platform_driver mtk_iommu_driver = {
|
||||
.probe = mtk_iommu_probe,
|
||||
|
@ -602,6 +602,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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user