Skip to content

Commit

Permalink
omap: i2c: Avoid compilation error in case the header is included mul…
Browse files Browse the repository at this point in the history
…tiple times

Added defines to avoid compilation error.

Signed-off-by: Subramaniam C.A <subramaniam.ca@ti.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Subramaniam C.A authored and Tony Lindgren committed Sep 27, 2010
1 parent 82a0c14 commit 813f6c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/plat-omap/include/plat/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
* 02110-1301 USA
*
*/
#ifndef __ASM__ARCH_OMAP_I2C_H
#define __ASM__ARCH_OMAP_I2C_H

#include <linux/i2c.h>

Expand All @@ -36,3 +38,5 @@ static inline int omap_register_i2c_bus(int bus_id, u32 clkrate,

void __init omap1_i2c_mux_pins(int bus_id);
void __init omap2_i2c_mux_pins(int bus_id);

#endif /* __ASM__ARCH_OMAP_I2C_H */

0 comments on commit 813f6c5

Please sign in to comment.