iommu/mediatek: Clean up struct mtk_smi_iommu

Remove the "struct mtk_smi_iommu" to simplify the code since it has only
one item in it right now.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
Yong Wu
2019-08-24 11:02:08 +08:00
committed by Joerg Roedel
parent ec2da07ca1
commit 1ee9feb2c9
5 changed files with 10 additions and 14 deletions

View File

@@ -143,13 +143,13 @@ static int
mtk_smi_larb_bind(struct device *dev, struct device *master, void *data)
{
struct mtk_smi_larb *larb = dev_get_drvdata(dev);
struct mtk_smi_iommu *smi_iommu = data;
struct mtk_smi_larb_iommu *larb_mmu = data;
unsigned int i;
for (i = 0; i < MTK_LARB_NR_MAX; i++) {
if (dev == smi_iommu->larb_imu[i].dev) {
if (dev == larb_mmu[i].dev) {
larb->larbid = i;
larb->mmu = &smi_iommu->larb_imu[i].mmu;
larb->mmu = &larb_mmu[i].mmu;
return 0;
}
}