From f9820dd36a5339a78d3fedf7b9178fffe34b54b3 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Thu, 20 Oct 2005 08:57:01 -0700 Subject: [PATCH] ARM: OMAP: fix to compile when CONFIG_I2C not enabled Signed-off-by: Kevin Hilman --- arch/arm/plat-omap/devices.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c index b3c21f06953..fe83bb6234b 100644 --- a/arch/arm/plat-omap/devices.c +++ b/arch/arm/plat-omap/devices.c @@ -93,6 +93,8 @@ static void omap_init_i2c(void) (void) platform_device_register(&omap_i2c_device1); } +#else +static inline void omap_init_i2c(void) {} #endif /*-------------------------------------------------------------------------*/ -- 2.41.1