Author: blogic
Date: 2014-11-14 17:53:40 +0100 (Fri, 14 Nov 2014)
New Revision: 43254

Added:
   trunk/target/linux/ramips/patches-3.14/999-no-pm_poweroff.patch
Modified:
   trunk/target/linux/ramips/mt7621/config-3.14
Log:
ralink: dont define pm_poweroff

this makes gpio-poweroff work

Signed-off-by: John Crispin <[email protected]>

Modified: trunk/target/linux/ramips/mt7621/config-3.14
===================================================================
--- trunk/target/linux/ramips/mt7621/config-3.14        2014-11-14 16:53:34 UTC 
(rev 43253)
+++ trunk/target/linux/ramips/mt7621/config-3.14        2014-11-14 16:53:40 UTC 
(rev 43254)
@@ -150,6 +150,9 @@
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_RT2880=y
 # CONFIG_PINCTRL_SINGLE is not set
+CONFIG_POWER_RESET=y
+CONFIG_POWER_RESET_GPIO=y
+CONFIG_POWER_SUPPLY=y
 # CONFIG_PREEMPT_RCU is not set
 CONFIG_RALINK=y
 CONFIG_RALINK_USBPHY=y

Added: trunk/target/linux/ramips/patches-3.14/999-no-pm_poweroff.patch
===================================================================
--- trunk/target/linux/ramips/patches-3.14/999-no-pm_poweroff.patch             
                (rev 0)
+++ trunk/target/linux/ramips/patches-3.14/999-no-pm_poweroff.patch     
2014-11-14 16:53:40 UTC (rev 43254)
@@ -0,0 +1,12 @@
+Index: linux-3.14.18/arch/mips/ralink/reset.c
+===================================================================
+--- linux-3.14.18.orig/arch/mips/ralink/reset.c        2014-09-06 
01:34:59.000000000 +0200
++++ linux-3.14.18/arch/mips/ralink/reset.c     2014-11-14 14:28:44.548764125 
+0100
+@@ -98,7 +98,6 @@
+ {
+       _machine_restart = ralink_restart;
+       _machine_halt = ralink_halt;
+-      pm_power_off = ralink_halt;
+ 
+       return 0;
+ }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to