diff options
author | Laura Abbott <labbott@redhat.com> | 2017-01-11 00:35:46 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-01-11 16:56:50 +0300 |
commit | 1a08e3d9e0ac4577ba89dbdb38f593fe050f88fc (patch) | |
tree | f3ab30b39528d1688ac65ac6d58be33741bf5e0b /drivers/firmware | |
parent | 46f6236aa1c48e06b10a2fe0386ac4114b438622 (diff) | |
download | linux-1a08e3d9e0ac4577ba89dbdb38f593fe050f88fc.tar.xz |
drivers: firmware: psci: Use __pa_symbol for kernel symbol
__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>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/psci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index 6c60a5087caf..66a8793f3b37 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -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) |