diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2018-12-12 23:38:57 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-01-16 13:54:13 +0100 |
commit | 568ece5bab24d41bec4d1610439277032840a133 (patch) | |
tree | 474d2c68733e8cf7a5a0ab29f6c728978828a8c7 /drivers/iommu/tegra-smmu.c | |
parent | ce2785a75dbca27375f3723f4e697a2a8dc096ee (diff) | |
download | talos-op-linux-568ece5bab24d41bec4d1610439277032840a133.tar.gz talos-op-linux-568ece5bab24d41bec4d1610439277032840a133.zip |
memory: tegra: Do not try to probe SMMU on Tegra20
Tegra20 doesn't have SMMU. Move out checking of the SMMU presence from
the SMMU driver into the Memory Controller driver. This change makes code
consistent in regards to how GART/SMMU presence checking is performed.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/tegra-smmu.c')
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 3a5c7dc6dc57..5182c7d6171e 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -982,10 +982,6 @@ struct tegra_smmu *tegra_smmu_probe(struct device *dev, u32 value; int err; - /* This can happen on Tegra20 which doesn't have an SMMU */ - if (!soc) - return NULL; - smmu = devm_kzalloc(dev, sizeof(*smmu), GFP_KERNEL); if (!smmu) return ERR_PTR(-ENOMEM); |