mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] eukrea_cpuimx27: allow compilation without LP3972 selected
@ 2010-05-17 14:42 Eric Bénard
  0 siblings, 0 replies; only message in thread
From: Eric Bénard @ 2010-05-17 14:42 UTC (permalink / raw)
  To: barebox

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 board/eukrea_cpuimx27/eukrea_cpuimx27.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/board/eukrea_cpuimx27/eukrea_cpuimx27.c b/board/eukrea_cpuimx27/eukrea_cpuimx27.c
index 2b6db15..ef57a96 100644
--- a/board/eukrea_cpuimx27/eukrea_cpuimx27.c
+++ b/board/eukrea_cpuimx27/eukrea_cpuimx27.c
@@ -276,18 +276,20 @@ console_initcall(eukrea_cpuimx27_console_init);
 
 static int eukrea_cpuimx27_late_init(void)
 {
+#ifdef CONFIG_DRIVER_I2C_LP3972
 	struct i2c_client *client;
 	u8 reg[1];
-
+#endif
 	console_flush();
 	register_device(&fec_dev);
 
+#ifdef CONFIG_DRIVER_I2C_LP3972
 	client = lp3972_get_client();
 	if (!client)
 		return -ENODEV;
 	reg[0] = 0xa0;
 	i2c_write_reg(client, 0x39, reg, sizeof(reg));
-
+#endif
 	return 0;
 }
 
-- 
1.6.3.3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-17 14:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-17 14:42 [PATCH] eukrea_cpuimx27: allow compilation without LP3972 selected Eric Bénard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox