We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b9d4e commit 4bbe0c7Copy full SHA for 4bbe0c7
drivers/iommu/msm_iommu.c
@@ -593,14 +593,14 @@ static void insert_iommu_master(struct device *dev,
593
struct msm_iommu_dev **iommu,
594
struct of_phandle_args *spec)
595
{
596
- struct msm_iommu_ctx_dev *master = dev->archdata.iommu;
+ struct msm_iommu_ctx_dev *master = dev_iommu_priv_get(dev);
597
int sid;
598
599
if (list_empty(&(*iommu)->ctx_list)) {
600
master = kzalloc(sizeof(*master), GFP_ATOMIC);
601
master->of_node = dev->of_node;
602
list_add(&master->list, &(*iommu)->ctx_list);
603
- dev->archdata.iommu = master;
+ dev_iommu_priv_set(dev, master);
604
}
605
606
for (sid = 0; sid < master->num_mids; sid++)
0 commit comments