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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user