ARM: Virt: Use gpio_key for power button
authorShannon Zhao <shannon.zhao@linaro.org>
Wed, 30 Mar 2016 16:27:22 +0000 (17:27 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 30 Mar 2016 16:27:22 +0000 (17:27 +0100)
commit94f02c5ea9430be935088b2574f72f2dcf902997
treecfe9975c24b86df059dba320eccdcd48bac0b12d
parente5a8152c9bfd3d40c37711ba5b704f277cbc0c54
ARM: Virt: Use gpio_key for power button

There is a problem for power button that it will not work if an early
system_powerdown request happens before guest gpio driver loads.

Fix this problem by using gpio_key.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Message-id: 1458221140-15232-3-git-send-email-zhaoshenglong@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c