]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: 7640/1: memory: tegra_ahb_enable_smmu() depends on TEGRA_IOMMU_SMMU
authorHiroshi Doyu <hdoyu@nvidia.com>
Wed, 6 Feb 2013 19:12:35 +0000 (20:12 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 21 Feb 2013 13:28:17 +0000 (13:28 +0000)
New SoC, Tegra114 also uses SMMU. Change tegra_ahb_enable_smmu()'s
dependency from ARCH_TEGRA_3x_SOC to TEGRA_IOMMU_SMMU. No need to edit
whenever a new Tegra SoC comes.

The following combination caused build error, which this patch fixes.

CONFIG_ARCH_TEGRA_2x_SOC=y
CONFIG_ARCH_TEGRA_114_SOC=y

drivers/iommu/tegra-smmu.c:485: undefined reference to gra_ahb_enable_smmu'

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/amba/tegra-ahb.c

index 536c166f4253eac9b8bcdf4b9c71c45c35b18b45..1247052b9db6abd54f254d69507095d34341c4ca 100644 (file)
@@ -129,7 +129,7 @@ static inline void gizmo_writel(struct tegra_ahb *ahb, u32 value, u32 offset)
        writel(value, ahb->regs + offset);
 }
 
-#ifdef CONFIG_ARCH_TEGRA_3x_SOC
+#ifdef CONFIG_TEGRA_IOMMU_SMMU
 static int tegra_ahb_match_by_smmu(struct device *dev, void *data)
 {
        struct tegra_ahb *ahb = dev_get_drvdata(dev);