linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ARM: S5PC110/S5PC210: Add the C Preprocessor directives for gpio.h
@ 2010-08-02  0:24 Kyungmin Park
  2010-08-03  5:07 ` Kukjin Kim
  0 siblings, 1 reply; 3+ messages in thread
From: Kyungmin Park @ 2010-08-02  0:24 UTC (permalink / raw)
  To: linux-arm-kernel

From: Kyungmin Park <kyungmin.park@samsung.com>

Make a buile error when include the mach/gpio.h directly.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 arch/arm/mach-s5pv210/include/mach/gpio.h |    4 ++++
 arch/arm/mach-s5pv310/include/mach/gpio.h |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-s5pv210/include/mach/gpio.h b/arch/arm/mach-s5pv210/include/mach/gpio.h
index 1f4b595..7798693 100644
--- a/arch/arm/mach-s5pv210/include/mach/gpio.h
+++ b/arch/arm/mach-s5pv210/include/mach/gpio.h
@@ -13,6 +13,10 @@
 #ifndef __ASM_ARCH_GPIO_H
 #define __ASM_ARCH_GPIO_H __FILE__
 
+#ifndef __LINUX_GPIO_H
+#error "Don't include the mach/gpio.h directly. use the linux/gpio.h"
+#endif
+
 #define gpio_get_value	__gpio_get_value
 #define gpio_set_value	__gpio_set_value
 #define gpio_cansleep	__gpio_cansleep
diff --git a/arch/arm/mach-s5pv310/include/mach/gpio.h b/arch/arm/mach-s5pv310/include/mach/gpio.h
index 20cb80c..3f751f2 100644
--- a/arch/arm/mach-s5pv310/include/mach/gpio.h
+++ b/arch/arm/mach-s5pv310/include/mach/gpio.h
@@ -13,6 +13,10 @@
 #ifndef __ASM_ARCH_GPIO_H
 #define __ASM_ARCH_GPIO_H __FILE__
 
+#ifndef __LINUX_GPIO_H
+#error "Don't include the mach/gpio.h directly. use the linux/gpio.h"
+#endif
+
 #define gpio_get_value	__gpio_get_value
 #define gpio_set_value	__gpio_set_value
 #define gpio_cansleep	__gpio_cansleep
-- 
1.5.3.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-03  5:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-02  0:24 [PATCH 1/3] ARM: S5PC110/S5PC210: Add the C Preprocessor directives for gpio.h Kyungmin Park
2010-08-03  5:07 ` Kukjin Kim
2010-08-03  5:14   ` Kyungmin Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).