summaryrefslogtreecommitdiffstats
path: root/arch/x86/cpu/intel_common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-23 08:11:26 -0700
committerSimon Glass <sjg@chromium.org>2021-01-05 12:24:41 -0700
commit52d2e9c142c0079bba51011bb95301c986ff11bb (patch)
tree0af941009f7785ed5f7a942c18f72ddf3be7aad7 /arch/x86/cpu/intel_common
parent7d637c122d772e472a211f6aa3f33cbe3c3e243c (diff)
downloadu-boot-52d2e9c142c0079bba51011bb95301c986ff11bb.tar.gz
u-boot-52d2e9c142c0079bba51011bb95301c986ff11bb.tar.xz
u-boot-52d2e9c142c0079bba51011bb95301c986ff11bb.zip
x86: apl: Use const for driver operations
Update these declarations to const to ensure that the data ends up in the rodata section. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/intel_common')
-rw-r--r--arch/x86/cpu/intel_common/p2sb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/intel_common/p2sb.c b/arch/x86/cpu/intel_common/p2sb.c
index e6edab0b05..3765eeeab0 100644
--- a/arch/x86/cpu/intel_common/p2sb.c
+++ b/arch/x86/cpu/intel_common/p2sb.c
@@ -180,7 +180,7 @@ static int p2sb_child_post_bind(struct udevice *dev)
return 0;
}
-struct p2sb_ops p2sb_ops = {
+static const struct p2sb_ops p2sb_ops = {
.set_hide = intel_p2sb_set_hide,
};