diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-09-19 17:51:01 -0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-11-05 13:36:06 -0500 |
commit | cc95e347cbba3a29c6f8c95ec737624afe489d8e (patch) | |
tree | 53a4e5a5051b49d2e42a4a5a813ad1150df1e292 | |
parent | a25186eb03f1f89eacda559d39c14e3cf8ffae13 (diff) |
ARM: tegra: move tegra-ahb.h out of arch/arm/mach-tegra/
We wish to empty arch/arm/mach-tegra/include/mach/ as much as possible
to enable single zImage. Move tegra-ahb.h to a more central location
(suggested by Arnd, OK'd by Greg KH), and actually make tegra-ahb.c
include the header to ensure client and provider agree on the prototype.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r-- | drivers/amba/tegra-ahb.c | 1 | ||||
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 3 | ||||
-rw-r--r-- | include/linux/tegra-ahb.h (renamed from arch/arm/mach-tegra/include/mach/tegra-ahb.h) | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/amba/tegra-ahb.c b/drivers/amba/tegra-ahb.c index 0b6f0b28a487..bd5de08ad6fd 100644 --- a/drivers/amba/tegra-ahb.c +++ b/drivers/amba/tegra-ahb.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/io.h> | 26 | #include <linux/io.h> |
27 | #include <linux/tegra-ahb.h> | ||
27 | 28 | ||
28 | #define DRV_NAME "tegra-ahb" | 29 | #define DRV_NAME "tegra-ahb" |
29 | 30 | ||
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 3fb95dde20f5..41678639b7e3 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c | |||
@@ -34,12 +34,11 @@ | |||
34 | #include <linux/of_iommu.h> | 34 | #include <linux/of_iommu.h> |
35 | #include <linux/debugfs.h> | 35 | #include <linux/debugfs.h> |
36 | #include <linux/seq_file.h> | 36 | #include <linux/seq_file.h> |
37 | #include <linux/tegra-ahb.h> | ||
37 | 38 | ||
38 | #include <asm/page.h> | 39 | #include <asm/page.h> |
39 | #include <asm/cacheflush.h> | 40 | #include <asm/cacheflush.h> |
40 | 41 | ||
41 | #include <mach/tegra-ahb.h> | ||
42 | |||
43 | enum smmu_hwgrp { | 42 | enum smmu_hwgrp { |
44 | HWGRP_AFI, | 43 | HWGRP_AFI, |
45 | HWGRP_AVPC, | 44 | HWGRP_AVPC, |
diff --git a/arch/arm/mach-tegra/include/mach/tegra-ahb.h b/include/linux/tegra-ahb.h index e0f8c84b1d8c..f1cd075ceee1 100644 --- a/arch/arm/mach-tegra/include/mach/tegra-ahb.h +++ b/include/linux/tegra-ahb.h | |||
@@ -11,9 +11,9 @@ | |||
11 | * more details. | 11 | * more details. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #ifndef __MACH_TEGRA_AHB_H__ | 14 | #ifndef __LINUX_AHB_H__ |
15 | #define __MACH_TEGRA_AHB_H__ | 15 | #define __LINUX_AHB_H__ |
16 | 16 | ||
17 | extern int tegra_ahb_enable_smmu(struct device_node *ahb); | 17 | extern int tegra_ahb_enable_smmu(struct device_node *ahb); |
18 | 18 | ||
19 | #endif /* __MACH_TEGRA_AHB_H__ */ | 19 | #endif /* __LINUX_AHB_H__ */ |