All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]omap: i2c: Avoid compilation error in case the header is included multiple times
@ 2010-08-24 17:14 C.A, Subramaniam
  2010-08-24 18:49 ` Felipe Balbi
  2010-09-23 17:33 ` [APPLIED] [PATCH]omap: i2c: Avoid compilation error in case the header is Tony Lindgren
  0 siblings, 2 replies; 4+ messages in thread
From: C.A, Subramaniam @ 2010-08-24 17:14 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org; +Cc: Gadiyar, Anand, tony@atomide.com

>From e3c3ee9317850b2b26e02680a0c976d3c75febab Mon Sep 17 00:00:00 2001
From: Subramaniam C.A <subramaniam.ca@ti.com>
Date: Tue, 24 Aug 2010 12:02:28 -0500
Subject: [PATCH] omap: i2c: Avoid compilation error in case the header is included multiple times.

Added defines to avoid compilation error.

Signed-off-by: Subramaniam C.A <subramaniam.ca@ti.com>
---
 arch/arm/plat-omap/include/plat/i2c.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/include/plat/i2c.h b/arch/arm/plat-omap/include/plat/i2c.h
index 9e085f1..5d67273 100644
--- a/arch/arm/plat-omap/include/plat/i2c.h
+++ b/arch/arm/plat-omap/include/plat/i2c.h
@@ -18,6 +18,8 @@
  * 02110-1301 USA
  *
  */
+#ifndef __ASM__ARCH_OMAP_I2C_H
+#define __ASM__ARCH_OMAP_I2C_H

 #include <linux/i2c.h>

@@ -57,3 +59,5 @@ struct omap_i2c_dev_attr {

 void __init omap1_i2c_mux_pins(int bus_id);
 void __init omap2_i2c_mux_pins(int bus_id);
+
+#endif /* __ASM__ARCH_OMAP_I2C_H */
--
1.7.0.4

BR
Subbu

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

end of thread, other threads:[~2010-09-23 17:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-24 17:14 [PATCH]omap: i2c: Avoid compilation error in case the header is included multiple times C.A, Subramaniam
2010-08-24 18:49 ` Felipe Balbi
2010-08-24 18:57   ` C.A, Subramaniam
2010-09-23 17:33 ` [APPLIED] [PATCH]omap: i2c: Avoid compilation error in case the header is Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.