diff mbox

omap: i2c: Avoid compilation error in case the header is included multiple times

Message ID B85A65D85D7EB246BE421B3FB0FBB59301E835183B@dbde02.ent.ti.com (mailing list archive)
State Accepted
Commit 6ce3fc011cdd5b7eb72d0cacb236bbfa51f17dad
Delegated to: Tony Lindgren
Headers show

Commit Message

C.A, Subramaniam Aug. 24, 2010, 5:14 p.m. UTC
None
diff mbox

Patch

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 */