Re: [Patch V2 1/2] iommu: remove the iommu_callback_data

2016-04-14 Thread Wei Yang
Hi, Alex I think this one is correct. It applies on v4.5 and works fine. Or I missed something else? On Wed, Mar 23, 2016 at 10:25:10PM +, Wei Yang wrote: >According to the code path, iommu_callback_data is passed in >iommu_bus_init() and just used in {add/remove}_iommu_group, by when the >b

[Patch V2 1/2] iommu: remove the iommu_callback_data

2016-03-23 Thread Wei Yang
According to the code path, iommu_callback_data is passed in iommu_bus_init() and just used in {add/remove}_iommu_group, by when the bus->iommu_ops is already set up properly. This patch removes the iommu_callback_data by retrieving iommu_ops from bus->iommu_ops directly. Signed-off-by: Wei Yang