diff options
author | Andreas Herrmann <andreas.herrmann@calxeda.com> | 2014-01-30 13:18:08 -0500 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-02-24 14:09:43 -0500 |
commit | 636e97b0fb0a063dc89773b13064647f5da632cb (patch) | |
tree | f6686e795fb979dab2f8f97ac254259ac19f9dbd | |
parent | cfbf8d4857c26a8a307fb7cd258074c9dcd8c691 (diff) |
iommu/arm-smmu: set MAX_MASTER_STREAMIDS to MAX_PHANDLE_ARGS
The DT parsing code that determines stream IDs uses
of_parse_phandle_with_args and thus MAX_MASTER_STREAMIDS
is always bound by MAX_PHANDLE_ARGS.
Signed-off-by: Andreas Herrmann <andreas.herrmann@calxeda.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | drivers/iommu/arm-smmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 1d9ab39af29f..a3ce60887efa 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c | |||
@@ -48,7 +48,7 @@ | |||
48 | #include <asm/pgalloc.h> | 48 | #include <asm/pgalloc.h> |
49 | 49 | ||
50 | /* Maximum number of stream IDs assigned to a single device */ | 50 | /* Maximum number of stream IDs assigned to a single device */ |
51 | #define MAX_MASTER_STREAMIDS 8 | 51 | #define MAX_MASTER_STREAMIDS MAX_PHANDLE_ARGS |
52 | 52 | ||
53 | /* Maximum number of context banks per SMMU */ | 53 | /* Maximum number of context banks per SMMU */ |
54 | #define ARM_SMMU_MAX_CBS 128 | 54 | #define ARM_SMMU_MAX_CBS 128 |