File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1261,6 +1261,11 @@ static int exynos_iommu_add_device(struct device *dev)
1261
1261
}
1262
1262
iommu_group_put (group );
1263
1263
1264
+ /* There is always at least one entry, see exynos_iommu_of_xlate() */
1265
+ data = list_first_entry (& owner -> controllers ,
1266
+ struct sysmmu_drvdata , owner_node );
1267
+ iommu_device_link (& data -> iommu , dev );
1268
+
1264
1269
return 0 ;
1265
1270
}
1266
1271
@@ -1286,6 +1291,11 @@ static void exynos_iommu_remove_device(struct device *dev)
1286
1291
1287
1292
list_for_each_entry (data , & owner -> controllers , owner_node )
1288
1293
device_link_del (data -> link );
1294
+
1295
+ /* There is always at least one entry, see exynos_iommu_of_xlate() */
1296
+ data = list_first_entry (& owner -> controllers ,
1297
+ struct sysmmu_drvdata , owner_node );
1298
+ iommu_device_unlink (& data -> iommu , dev );
1289
1299
}
1290
1300
1291
1301
static int exynos_iommu_of_xlate (struct device * dev ,
You can’t perform that action at this time.
0 commit comments