diff mbox

ARM: EXYNOS4: Add header file protection macros

Message ID 1316493961-7650-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat Sept. 20, 2011, 4:46 a.m. UTC
This patch adds header file protection macros to prevent duplication.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 arch/arm/mach-exynos4/include/mach/pm-core.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Comments

Kukjin Kim Sept. 21, 2011, 11:51 a.m. UTC | #1
Sachin Kamat wrote:
> 
> This patch adds header file protection macros to prevent duplication.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  arch/arm/mach-exynos4/include/mach/pm-core.h |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-exynos4/include/mach/pm-core.h b/arch/arm/mach-
> exynos4/include/mach/pm-core.h
> index 1df3b81..4c3406b 100644
> --- a/arch/arm/mach-exynos4/include/mach/pm-core.h
> +++ b/arch/arm/mach-exynos4/include/mach/pm-core.h
> @@ -14,6 +14,10 @@
>   * it under the terms of the GNU General Public License version 2 as
>   * published by the Free Software Foundation.
>  */
> +
> +#ifndef __ASM_ARCH_PM_CORE_H
> +#define __ASM_ARCH_PM_CORE_H __FILE__
> +
>  #include <mach/regs-pmu.h>
> 
>  static inline void s3c_pm_debug_init_uart(void)
> @@ -57,3 +61,5 @@ static inline void s3c_pm_saved_gpios(void)
>  {
>  	/* nothing here yet */
>  }
> +
> +#endif /* __ASM_ARCH_PM_CORE_H */
> --
> 1.7.4.1

OK, will apply.
Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
diff mbox

Patch

diff --git a/arch/arm/mach-exynos4/include/mach/pm-core.h b/arch/arm/mach-exynos4/include/mach/pm-core.h
index 1df3b81..4c3406b 100644
--- a/arch/arm/mach-exynos4/include/mach/pm-core.h
+++ b/arch/arm/mach-exynos4/include/mach/pm-core.h
@@ -14,6 +14,10 @@ 
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
 */
+
+#ifndef __ASM_ARCH_PM_CORE_H
+#define __ASM_ARCH_PM_CORE_H __FILE__
+
 #include <mach/regs-pmu.h>
 
 static inline void s3c_pm_debug_init_uart(void)
@@ -57,3 +61,5 @@  static inline void s3c_pm_saved_gpios(void)
 {
 	/* nothing here yet */
 }
+
+#endif /* __ASM_ARCH_PM_CORE_H */