[PATCH 1/2] iommu/arm-smmu: Replace list walk with platform driver data

Will Deacon will.deacon at arm.com
Fri Feb 28 11:38:37 EST 2014


Hi Laurent,

On Fri, Feb 28, 2014 at 03:37:09PM +0000, Laurent Pinchart wrote:
> Instead of walking the list of registered SMMU devices at remove time to
> locate the device being removed, set platform driver data at probe time
> to point to the SMMU and retrieve the pointer at remove time.

What does this gain us other than a slight code shrinkage? If we could get
rid of the arm_smmu_devices list, then I'd be more excited by this change!

Will



More information about the linux-arm-kernel mailing list