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

Grant Likely
2007-10-11T20:11:44Z

On 10/11/07, Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> wrote:
> 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>
> +

Unless this fixes a compile bug, this change isn't worth it right now.
The CONFIG_MW_EEPROM macro is going to go away very soon.

Cheers,
g.

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195