aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/kernel/smp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
index a886194e58fd..1e22ff9ae153 100644
--- a/arch/arm64/kernel/smp.c
+++ b/arch/arm64/kernel/smp.c
@@ -245,11 +245,11 @@ static const struct smp_enable_ops *smp_enable_ops[NR_CPUS];
245 245
246static const struct smp_enable_ops * __init smp_get_enable_ops(const char *name) 246static const struct smp_enable_ops * __init smp_get_enable_ops(const char *name)
247{ 247{
248 const struct smp_enable_ops *ops = enable_ops[0]; 248 const struct smp_enable_ops **ops = enable_ops;
249 249
250 while (ops) { 250 while (*ops) {
251 if (!strcmp(name, ops->name)) 251 if (!strcmp(name, (*ops)->name))
252 return ops; 252 return *ops;
253 253
254 ops++; 254 ops++;
255 } 255 }