summaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/jump_label.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel/jump_label.c')
-rw-r--r--arch/sparc/kernel/jump_label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/jump_label.c b/arch/sparc/kernel/jump_label.c
index 48565c11e82a..59bbeff55024 100644
--- a/arch/sparc/kernel/jump_label.c
+++ b/arch/sparc/kernel/jump_label.c
@@ -16,7 +16,7 @@ void arch_jump_label_transform(struct jump_entry *entry,
u32 val;
u32 *insn = (u32 *) (unsigned long) entry->code;
- if (type == JUMP_LABEL_ENABLE) {
+ if (type == JUMP_LABEL_JMP) {
s32 off = (s32)entry->target - (s32)entry->code;
#ifdef CONFIG_SPARC64