[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1412659726-29957-36-git-send-email-linux@roeck-us.net>
Date: Mon, 6 Oct 2014 22:28:37 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: linux-kernel@...r.kernel.org
Cc: adi-buildroot-devel@...ts.sourceforge.net,
devel@...verdev.osuosl.org, devicetree@...r.kernel.org,
lguest@...ts.ozlabs.org, linux-acpi@...r.kernel.org,
linux-alpha@...r.kernel.org, linux-am33-list@...hat.com,
linux-cris-kernel@...s.com, linux-efi@...r.kernel.org,
linux-hexagon@...r.kernel.org, linux-m32r-ja@...linux-m32r.org,
linuxppc-dev@...ts.ozlabs.org, linux-s390@...r.kernel.org,
linux-tegra@...r.kernel.org, linux-xtensa@...ux-xtensa.org,
openipmi-developer@...ts.sourceforge.net,
user-mode-linux-devel@...ts.sourceforge.net,
linux-arm-kernel@...ts.infradead.org, linux-c6x-dev@...ux-c6x.org,
linux-ia64@...r.kernel.org, linux-m68k@...ts.linux-m68k.org,
linux-metag@...r.kernel.org, linux-mips@...ux-mips.org,
linux-parisc@...r.kernel.org, linux-pm@...r.kernel.org,
linux-sh@...r.kernel.org, xen-devel@...ts.xenproject.org,
Guenter Roeck <linux@...ck-us.net>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Joshua Thompson <funaho@...ai.org>
Subject: [PATCH 35/44] m68k: Register with kernel poweroff handler
Register with kernel poweroff handler instead of setting pm_power_off
directly.
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Joshua Thompson <funaho@...ai.org>
Signed-off-by: Guenter Roeck <linux@...ck-us.net>
---
arch/m68k/emu/natfeat.c | 2 +-
arch/m68k/mac/config.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/m68k/emu/natfeat.c b/arch/m68k/emu/natfeat.c
index 91e2ae7..c4d5bd8 100644
--- a/arch/m68k/emu/natfeat.c
+++ b/arch/m68k/emu/natfeat.c
@@ -91,5 +91,5 @@ void __init nf_init(void)
pr_info("NatFeats found (%s, %lu.%lu)\n", buf, version >> 16,
version & 0xffff);
- pm_power_off = nf_poweroff;
+ register_poweroff_handler_simple(nf_poweroff, 128);
}
diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c
index 677913ff..5d8e2e6 100644
--- a/arch/m68k/mac/config.c
+++ b/arch/m68k/mac/config.c
@@ -160,7 +160,7 @@ void __init config_mac(void)
mach_set_clock_mmss = mac_set_clock_mmss;
mach_reset = mac_reset;
mach_halt = mac_poweroff;
- pm_power_off = mac_poweroff;
+ register_poweroff_handler_simple(mac_poweroff, 128);
mach_max_dma_address = 0xffffffff;
#if defined(CONFIG_INPUT_M68K_BEEP) || defined(CONFIG_INPUT_M68K_BEEP_MODULE)
mach_beep = mac_mksound;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists