summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2012-07-19 08:18:03 +0000
committerHeiko Schocher <hs@denx.de>2012-07-31 07:41:23 +0200
commit24cd738bc420630f5362e2845a9f8aa4076273e5 (patch)
treec9944f30db9f41e7565b19568f601e82d365a1c1 /drivers
parent1c076dba277fa35384b512841b0b284bdd579383 (diff)
downloadu-boot-imx-24cd738bc420630f5362e2845a9f8aa4076273e5.zip
u-boot-imx-24cd738bc420630f5362e2845a9f8aa4076273e5.tar.gz
u-boot-imx-24cd738bc420630f5362e2845a9f8aa4076273e5.tar.bz2
mxc_i2c: remove ifdef of CONFIG_HARD_I2C
This is always selected when CONFIG_I2C_MXC is selected, so it adds no value. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/mxc_i2c.c6
1 files changed, 1 insertions, 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 <common.h>
-#include <asm/io.h>
-
-#if defined(CONFIG_HARD_I2C)
-
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
+#include <asm/io.h>
#include <i2c.h>
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 */