armv8: fsl: i2c: Put I2C related code under CONFIG_SYS_I2C
authorSriram Dash <sriram.dash@nxp.com>
Mon, 4 Sep 2017 10:15:02 +0000 (15:45 +0530)
committerYork Sun <york.sun@nxp.com>
Fri, 22 Sep 2017 19:45:27 +0000 (12:45 -0700)
I2C code is put under CONFIG_SYS_I2C.

Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/soc.c

index e6142039a63283b21d43d89ac9292dbbc521ef63..a90ee0afd7722c23f276de3a5a00c9ff54269ba8 100644 (file)
@@ -260,8 +260,8 @@ static void erratum_rcw_src(void)
 #ifdef CONFIG_SYS_FSL_ERRATUM_A009203
 static void erratum_a009203(void)
 {
-       u8 __iomem *ptr;
 #ifdef CONFIG_SYS_I2C
+       u8 __iomem *ptr;
 #ifdef I2C1_BASE_ADDR
        ptr = (u8 __iomem *)(I2C1_BASE_ADDR + I2C_DEBUG_REG);