projects/WeTek_Core: Disable suspend and emulate poweroff by suspending the device

This commit is contained in:
Alex Deryskyba 2018-12-02 01:06:40 +02:00
parent 5dc77c99c2
commit 3c3c182f31
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,3 @@
[Sleep]
SuspendMode=false
HibernateMode=false

View File

@ -0,0 +1,12 @@
diff --git a/arch/arm/mach-meson8/pm.c b/arch/arm/mach-meson8/pm.c
index 754f7274b2e..9bda172c450 100755
--- a/arch/arm/mach-meson8/pm.c
+++ b/arch/arm/mach-meson8/pm.c
@@ -421,6 +421,7 @@ static struct platform_driver meson_pm_driver = {
static int __init meson_pm_init(void)
{
printk("enter %s\n",__func__);
+ pm_power_off = meson_pm_suspend;
return platform_driver_probe(&meson_pm_driver, meson_pm_probe);
}
late_initcall(meson_pm_init);