]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: tegra: move tegra-ahb.h out of arch/arm/mach-tegra/
authorStephen Warren <swarren@nvidia.com>
Wed, 19 Sep 2012 21:51:01 +0000 (15:51 -0600)
committerStephen Warren <swarren@nvidia.com>
Mon, 5 Nov 2012 18:36:06 +0000 (11:36 -0700)
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>
drivers/amba/tegra-ahb.c
drivers/iommu/tegra-smmu.c
include/linux/tegra-ahb.h [moved from arch/arm/mach-tegra/include/mach/tegra-ahb.h with 86% similarity]

index 0b6f0b28a4872b2aa32fe6f1e656ff1ae4ca213d..bd5de08ad6fd7a40ad30baaf7fcf1d8b7203d4b3 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
+#include <linux/tegra-ahb.h>
 
 #define DRV_NAME "tegra-ahb"
 
index 3fb95dde20f539f1f984760f90a4b1c5c98645f0..41678639b7e3fbd21b5131e4d6ddce89d5abbe61 100644 (file)
 #include <linux/of_iommu.h>
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
+#include <linux/tegra-ahb.h>
 
 #include <asm/page.h>
 #include <asm/cacheflush.h>
 
-#include <mach/tegra-ahb.h>
-
 enum smmu_hwgrp {
        HWGRP_AFI,
        HWGRP_AVPC,
similarity index 86%
rename from arch/arm/mach-tegra/include/mach/tegra-ahb.h
rename to include/linux/tegra-ahb.h
index e0f8c84b1d8c014aaac2b53661351c283b1aca75..f1cd075ceee1f23fb5d2a70256a3dbfc41403a08 100644 (file)
@@ -11,9 +11,9 @@
  * more details.
  */
 
-#ifndef __MACH_TEGRA_AHB_H__
-#define __MACH_TEGRA_AHB_H__
+#ifndef __LINUX_AHB_H__
+#define __LINUX_AHB_H__
 
 extern int tegra_ahb_enable_smmu(struct device_node *ahb);
 
-#endif /* __MACH_TEGRA_AHB_H__ */
+#endif /* __LINUX_AHB_H__ */