From: Kyungmin Park <kyungmin.park@samsung.com>
To: tony@atomide.com
Cc: linux-omap-open-source@linux.omap.com
Subject: [PATCH] ARM: OMAP: Fix compiler error when I2C_OMAP is not set
Date: Fri, 16 Nov 2007 09:36:49 +0900 [thread overview]
Message-ID: <20071116003649.GA27407@party> (raw)
Fix compiler error when I2C_OMAP is not set
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/include/asm-arm/arch-omap/common.h b/include/asm-arm/arch-omap/common.h
index 089ddc7..1797927 100644
--- a/include/asm-arm/arch-omap/common.h
+++ b/include/asm-arm/arch-omap/common.h
@@ -36,8 +36,12 @@ struct sys_timer;
extern void omap_map_common_io(void);
extern struct sys_timer omap_timer;
extern void omap_serial_init(void);
+#ifdef CONFIG_I2C_OMAP
extern int omap_register_i2c_bus(int bus_id, u32 clkrate,
struct i2c_board_info const *info,
unsigned len);
+#else
+#define omap_register_i2c_bus(...) do { } while (0)
+#endif
#endif /* __ARCH_ARM_MACH_OMAP_COMMON_H */
next reply other threads:[~2007-11-16 0:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-16 0:36 Kyungmin Park [this message]
2007-11-16 9:01 ` [PATCH] ARM: OMAP: Fix compiler error when I2C_OMAP is not set Jarkko Nikula
2007-11-16 23:45 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071116003649.GA27407@party \
--to=kyungmin.park@samsung.com \
--cc=linux-omap-open-source@linux.omap.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.