iommu/io-pgtable-arm: Fix pgtable allocation in selftest
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Mon, 18 Jun 2018 11:27:54 +0000 (12:27 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 26 Jul 2018 10:34:58 +0000 (11:34 +0100)
commitfac83d29d95471ad6a104f8c0d21669a3d59097b
tree0657ce23344c0a5be2ca6cb9b45be0b99f6e7043
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
iommu/io-pgtable-arm: Fix pgtable allocation in selftest

Commit 4b123757eeaa ("iommu/io-pgtable-arm: Make allocations
NUMA-aware") added a NUMA hint to page table allocation, but the pgtable
selftest doesn't provide an SMMU device parameter. Since dev_to_node
doesn't accept a NULL argument, add a special case for selftest.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/io-pgtable-arm.c