summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/static_call.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/static_call.c')
-rw-r--r--arch/powerpc/kernel/static_call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/static_call.c b/arch/powerpc/kernel/static_call.c
index 863a7aa24650..1502b7e439ca 100644
--- a/arch/powerpc/kernel/static_call.c
+++ b/arch/powerpc/kernel/static_call.c
@@ -17,7 +17,7 @@ void arch_static_call_transform(void *site, void *tramp, void *func, bool tail)
mutex_lock(&text_mutex);
if (func && !is_short) {
- err = patch_instruction(tramp + PPC_SCT_DATA, ppc_inst(target));
+ err = patch_ulong(tramp + PPC_SCT_DATA, target);
if (err)
goto out;
}