From: Sriram Dash Date: Mon, 4 Sep 2017 10:15:02 +0000 (+0530) Subject: armv8: fsl: i2c: Put I2C related code under CONFIG_SYS_I2C X-Git-Tag: v2017.11-rc1~45^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0d7f1ae0fe6c0d9af2c0208aab4843ec3fdfaf52;p=oweals%2Fu-boot.git armv8: fsl: i2c: Put I2C related code under CONFIG_SYS_I2C I2C code is put under CONFIG_SYS_I2C. Signed-off-by: Sriram Dash Reviewed-by: York Sun --- diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c index e6142039a6..a90ee0afd7 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/soc.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/soc.c @@ -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);