drivers: firmware: psci: Use __pa_symbol for kernel symbol
authorLaura Abbott <labbott@redhat.com>
Tue, 10 Jan 2017 21:35:46 +0000 (13:35 -0800)
committerWill Deacon <will.deacon@arm.com>
Wed, 11 Jan 2017 13:56:50 +0000 (13:56 +0000)
__pa_symbol is technically the macro that should be used for kernel
symbols. Switch to this as a pre-requisite for DEBUG_VIRTUAL which
will do bounds checking.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/firmware/psci.c

index 6c60a5087cafb885ea7c79fb6e60b6dd026639e4..66a8793f3b3793ff8510fbb96e376273d358a9ba 100644 (file)
@@ -383,7 +383,7 @@ static int psci_suspend_finisher(unsigned long index)
        u32 *state = __this_cpu_read(psci_power_state);
 
        return psci_ops.cpu_suspend(state[index - 1],
-                                   virt_to_phys(cpu_resume));
+                                   __pa_symbol(cpu_resume));
 }
 
 int psci_cpu_suspend_enter(unsigned long index)