projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c86a8f
)
mips: Avoid using config_enabled() directly
author
Simon Glass
<sjg@chromium.org>
Sat, 22 Jan 2022 12:07:23 +0000
(
05:07
-0700)
committer
Tom Rini
<trini@konsulko.com>
Wed, 9 Feb 2022 04:07:59 +0000
(23:07 -0500)
Use IS_ENABLED() instead, which is the correct macro for checking a CONFIG
option.
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/mips/lib/cache.c
patch
|
blob
|
history
diff --git
a/arch/mips/lib/cache.c
b/arch/mips/lib/cache.c
index 51a8f433475068e3b484fe232ad8b225ffa25789..ec652f0fba89e9f3db6cec4a73397d9c489a67f1 100644
(file)
--- a/
arch/mips/lib/cache.c
+++ b/
arch/mips/lib/cache.c
@@
-38,7
+38,7
@@
static void probe_l2(void)
l2c = read_c0_config5() & MIPS_CONF5_L2C;
}
- if (l2c &&
config_enabled
(CONFIG_MIPS_CM)) {
+ if (l2c &&
IS_ENABLED
(CONFIG_MIPS_CM)) {
gd->arch.l2_line_size = mips_cm_l2_line_size();
} else if (l2c) {
/* We don't know how to retrieve L2 config on this system */