aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-06-24 15:18:50 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-06-24 15:18:50 +0200
commit393ef18a1dbe25cc5ec77328ab2d668700e234bf (patch)
tree7d82d53b53fd7d8240b4df664de8278d38ec35be /target/linux
parent4554995c4d2b5ccab73912fdfe58abd6b5cd517c (diff)
downloadmaster-187ad058-393ef18a1dbe25cc5ec77328ab2d668700e234bf.tar.gz
master-187ad058-393ef18a1dbe25cc5ec77328ab2d668700e234bf.tar.bz2
master-187ad058-393ef18a1dbe25cc5ec77328ab2d668700e234bf.zip
lantiq: remove dummy ltq_machine_power_off to fix gpio-poweroff drivers
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/lantiq/patches-4.4/0047-poweroff.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-4.4/0047-poweroff.patch b/target/linux/lantiq/patches-4.4/0047-poweroff.patch
new file mode 100644
index 0000000000..54249bba52
--- /dev/null
+++ b/target/linux/lantiq/patches-4.4/0047-poweroff.patch
@@ -0,0 +1,23 @@
+--- a/arch/mips/lantiq/xway/reset.c
++++ b/arch/mips/lantiq/xway/reset.c
+@@ -301,12 +301,6 @@ static void ltq_machine_halt(void)
+ unreachable();
+ }
+
+-static void ltq_machine_power_off(void)
+-{
+- local_irq_disable();
+- unreachable();
+-}
+-
+ static void ltq_usb_init(void)
+ {
+ /* Power for USB cores 1 & 2 */
+@@ -379,7 +373,6 @@ static int __init mips_reboot_setup(void
+
+ _machine_restart = ltq_machine_restart;
+ _machine_halt = ltq_machine_halt;
+- pm_power_off = ltq_machine_power_off;
+
+ return 0;
+ }