[U-Boot-Users] [PATCH 24/30] fix specific ssi.h include when ds1722 or mw_eeprom not used

From deebcb14ca8966e9cb3cf49cd2ef6660bb78b7e0 Mon Sep 17 00:00:00 2001
From: Jean-Christophe PLAGNIOL-VILLARD plagnioj@jcrosoft.com Date: Sun, 7 Oct 2007 21:37:56 +0200 Subject: [PATCH] fix specific ssi.h include when ds1722 or mw_eeprom not used
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagnioj@jcrosoft.com --- drivers/eeprom/mw_eeprom.c | 4 ++-- drivers/hwmon/ds1722.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
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);
participants (1)
-
Jean-Christophe PLAGNIOL-VILLARD