summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorAngelo Dureghello <angelo@kernel-space.org>2023-04-05 00:59:25 +0200
committerHeiko Schocher <hs@denx.de>2023-04-11 06:51:51 +0200
commit987e20e5931df5b8e30f4ab363fe6c6adf94704f (patch)
tree2c6445011bf1bdcf9e2dfe4248bd093ea6bda603 /arch/m68k
parentdb457e682a91b0f013eab5a244824433c8bd0c45 (diff)
downloadu-boot-987e20e5931df5b8e30f4ab363fe6c6adf94704f.tar.gz
u-boot-987e20e5931df5b8e30f4ab363fe6c6adf94704f.tar.bz2
u-boot-987e20e5931df5b8e30f4ab363fe6c6adf94704f.zip
m68k: mcf5441x: fix CONFIG_SYS_FSL_I2C definition
Fix CONFIG_SYS_FSL_I2C to correct name CONFIG_SYS_I2C_FSL. Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/cpu/mcf5445x/speed.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/m68k/cpu/mcf5445x/speed.c b/arch/m68k/cpu/mcf5445x/speed.c
index eb73da68c6..5c78eb9834 100644
--- a/arch/m68k/cpu/mcf5445x/speed.c
+++ b/arch/m68k/cpu/mcf5445x/speed.c
@@ -129,9 +129,8 @@ int get_clocks(void)
setup_5441x_clocks();
#endif
-#ifdef CONFIG_SYS_FSL_I2C
- gd->arch.i2c1_clk = gd->bus_clk;
-#endif
+ if (IS_ENABLED(CONFIG_SYS_I2C_FSL))
+ gd->arch.i2c1_clk = gd->bus_clk;
return (0);
}