From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 22 Jun 2012 18:55:43 +0200 Subject: [U-Boot] [PATCH 02/24] mxc_i2c: remove ifdef of CONFIG_HARD_I2C In-Reply-To: <1340338339-11626-2-git-send-email-troy.kisky@boundarydevices.com> References: <1340338339-11626-1-git-send-email-troy.kisky@boundarydevices.com> <1340338339-11626-2-git-send-email-troy.kisky@boundarydevices.com> Message-ID: <201206221855.44072.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Troy Kisky, > This is always selected when CONFIG_I2C_MXC is > selected, so it adds no value. > > Signed-off-by: Troy Kisky Acked-by: Marek Vasut > --- > drivers/i2c/mxc_i2c.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c > index c0c45fd..0b46c9c 100644 > --- a/drivers/i2c/mxc_i2c.c > +++ b/drivers/i2c/mxc_i2c.c > @@ -31,12 +31,9 @@ > */ > > #include > -#include > - > -#if defined(CONFIG_HARD_I2C) > - > #include > #include > +#include > #include > > struct mxc_i2c_regs { > @@ -446,4 +443,3 @@ int i2c_write(uchar chip, uint addr, int alen, uchar > *buf, int len) > > return ret; > } > -#endif /* CONFIG_HARD_I2C */ Best regards, Marek Vasut