aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/renesas/rts7751r2d/setup.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-09-27 11:43:24 +0900
committerPaul Mundt <lethal@linux-sh.org>2006-09-27 11:43:24 +0900
commita56d276c05a80ce727902076a3b4c6247705e2df (patch)
treead4acaf463477f66dd4734c6c7210268114bb29f /arch/sh/boards/renesas/rts7751r2d/setup.c
parentsh: Kill off the .stack section. (diff)
downloadlinux-dev-a56d276c05a80ce727902076a3b4c6247705e2df.tar.xz
linux-dev-a56d276c05a80ce727902076a3b4c6247705e2df.zip
sh: Make hs7751rvoip/rts7751r2d use pm_power_off.
These were previously sprinkled in machine_power_off(), though missed being updated when the rest of the boards switched over. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to '')
-rw-r--r--arch/sh/boards/renesas/rts7751r2d/setup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sh/boards/renesas/rts7751r2d/setup.c b/arch/sh/boards/renesas/rts7751r2d/setup.c
index 2587fd1a0240..7953dde0b91c 100644
--- a/arch/sh/boards/renesas/rts7751r2d/setup.c
+++ b/arch/sh/boards/renesas/rts7751r2d/setup.c
@@ -10,6 +10,7 @@
*/
#include <linux/init.h>
+#include <linux/pm.h>
#include <asm/io.h>
#include <asm/rts7751r2d/rts7751r2d.h>
@@ -20,6 +21,11 @@ const char *get_system_type(void)
return "RTS7751R2D";
}
+static void rts7751r2d_power_off(void)
+{
+ ctrl_outw(0x0001, PA_POWOFF);
+}
+
/*
* Initialize the board
*/
@@ -27,5 +33,6 @@ void __init platform_setup(void)
{
printk(KERN_INFO "Renesas Technology Sales RTS7751R2D support.\n");
ctrl_outw(0x0000, PA_OUTPORT);
+ pm_power_off = rts7751r2d_power_off;
debug_counter = 0;
}