Skip to content
Commit 9dd4b294 authored by Rob Herring's avatar Rob Herring Committed by Stefano Stabellini
Browse files

ARM: xen: only set pm function ptrs for Xen guests



xen_pm_init was unconditionally setting pm_power_off and arm_pm_restart
function pointers. This breaks multi-platform kernels. Make this
conditional on running as a Xen guest and make it a late_initcall to
ensure it is setup after platform code for Dom0.

Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
CC: stable@vger.kernel.org
parent 23b7eaf8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment