ARM: tegra: move tegra-ahb.h out of arch/arm/mach-tegra/
Subsystems (6)
PATCH 1/1 ARM: tegra: move tegra-ahb.h out of arch/arm/mach-tegra/
From: Stephen Warren <[email protected]>
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.
---
drivers/amba/tegra-ahb.c | 1 +
drivers/iommu/tegra-smmu.c | 2 +-
.../include/mach => include/linux}/tegra-ahb.h | 6 +++---
3 files changed, 5 insertions(+), 4 deletions(-)
rename {arch/arm/mach-tegra/include/mach => include/linux}/tegra-ahb.h (86%)drivers/amba/tegra-ahb.c +1 -0
@@ -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"
drivers/iommu/tegra-smmu.c +1 -1
@@ -34,12 +34,12 @@#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/iomap.h> -#include <mach/tegra-ahb.h> enum smmu_hwgrp {HWGRP_AFI ,
include/linux/tegra-ahb.h renamed from arch/arm/mach-tegra/include/mach/tegra-ahb.h +3 -3
@@ -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__ */
Signature · 1 line
1.7.0.4
Stephen Warren
AppliedPATCH 1/1 ARM: tegra: move tegra-ahb.h out of arch/arm/mach-tegra/
Quoted 4 lines · Stephen Warren
We wish to empty
arch/arm/mach-tegra/include/mach/as much as possible to enable single zImage. Movetegra-ahb.hto a more central location (suggested by Arnd, OK'd by Greg KH), and actually maketegra-ahb.cinclude the header to ensure client and provider agree on the prototype.
Applied to Tegra's for-3.8/cleanup branch.