aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Brugger <matthias.bgg@gmail.com>2017-10-30 07:37:55 -0400
committerAlex Williamson <alex.williamson@redhat.com>2017-11-06 12:40:53 -0500
commit395df08d2e1de238a9c8c33fdcd0e2160efd63a9 (patch)
tree7825cddf28a6dcd47110e00cbb9ab036ceaa7a6f
parentb92b4fb5c14257c0e7eae291ecc1f7b1962e1699 (diff)
iommu/mediatek: Fix driver name
There exist two Mediatek iommu drivers for the two different generations of the device. But both drivers have the same name "mtk-iommu". This breaks the registration of the second driver: Error: Driver 'mtk-iommu' is already registered, aborting... Fix this by changing the name for first generation to "mtk-iommu-v1". Fixes: b17336c55d89 ("iommu/mediatek: add support for mtk iommu generation one HW") Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
-rw-r--r--drivers/iommu/mtk_iommu_v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c
index bc1efbfb9ddf..542930cd183d 100644
--- a/drivers/iommu/mtk_iommu_v1.c
+++ b/drivers/iommu/mtk_iommu_v1.c
@@ -708,7 +708,7 @@ static struct platform_driver mtk_iommu_driver = {
708 .probe = mtk_iommu_probe, 708 .probe = mtk_iommu_probe,
709 .remove = mtk_iommu_remove, 709 .remove = mtk_iommu_remove,
710 .driver = { 710 .driver = {
711 .name = "mtk-iommu", 711 .name = "mtk-iommu-v1",
712 .of_match_table = mtk_iommu_of_ids, 712 .of_match_table = mtk_iommu_of_ids,
713 .pm = &mtk_iommu_pm_ops, 713 .pm = &mtk_iommu_pm_ops,
714 } 714 }