[U-Boot-Users] [PATCH 24/24] fix specific ssi.h include when ds1722 or mw_eeprom not used
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Thu Oct 11 19:26:36 CEST 2007
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
diff --git a/drivers/eeprom/mw_eeprom.c b/drivers/eeprom/mw_eeprom.c
index 2a1f489..2b33488 100644
--- a/drivers/eeprom/mw_eeprom.c
+++ b/drivers/eeprom/mw_eeprom.c
@@ -1,11 +1,11 @@
/* Three-wire (MicroWire) serial eeprom driver (for 93C46 and compatibles) */
#include <common.h>
-#include <ssi.h>
-
#ifdef CONFIG_MW_EEPROM
+#include <ssi.h>
+
/*
* Serial EEPROM opcodes, including start bit
*/
diff --git a/drivers/hwmon/ds1722.c b/drivers/hwmon/ds1722.c
index 227d816..c19ee01 100644
--- a/drivers/hwmon/ds1722.c
+++ b/drivers/hwmon/ds1722.c
@@ -1,10 +1,10 @@
#include <common.h>
-#include <ssi.h>
-
#ifdef CONFIG_DS1722
+#include <ssi.h>
+
static void ds1722_select(int dev)
{
ssi_set_interface(4096, 0, 0, 0);
--
1.5.3.2
More information about the U-Boot
mailing list