mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
Merge pull request #3142 from codesnake/wc_wp_poweroff
WeTek_Core, WeTek_Play: Disable suspend and emulate poweroff by suspending the device
This commit is contained in:
commit
3023e01927
@ -0,0 +1,3 @@
|
|||||||
|
[Sleep]
|
||||||
|
SuspendMode=false
|
||||||
|
HibernateMode=false
|
@ -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);
|
@ -0,0 +1,3 @@
|
|||||||
|
[Sleep]
|
||||||
|
SuspendMode=false
|
||||||
|
HibernateMode=false
|
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/arch/arm/mach-meson6/pm.c b/arch/arm/mach-meson6/pm.c
|
||||||
|
index 45c0500968f..c5de8f8ca3e 100755
|
||||||
|
--- a/arch/arm/mach-meson6/pm.c
|
||||||
|
+++ b/arch/arm/mach-meson6/pm.c
|
||||||
|
@@ -1143,6 +1143,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);
|
Loading…
x
Reference in New Issue
Block a user