diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-26 22:43:24 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-26 22:43:24 -0400 |
commit | a56d276c05a80ce727902076a3b4c6247705e2df (patch) | |
tree | ad4acaf463477f66dd4734c6c7210268114bb29f /arch/sh/boards/renesas/rts7751r2d/setup.c | |
parent | 50e98e72e459e43b6b9a5449e35bb6fc54e21149 (diff) |
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 'arch/sh/boards/renesas/rts7751r2d/setup.c')
-rw-r--r-- | arch/sh/boards/renesas/rts7751r2d/setup.c | 7 |
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 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/pm.h> | ||
13 | #include <asm/io.h> | 14 | #include <asm/io.h> |
14 | #include <asm/rts7751r2d/rts7751r2d.h> | 15 | #include <asm/rts7751r2d/rts7751r2d.h> |
15 | 16 | ||
@@ -20,6 +21,11 @@ const char *get_system_type(void) | |||
20 | return "RTS7751R2D"; | 21 | return "RTS7751R2D"; |
21 | } | 22 | } |
22 | 23 | ||
24 | static void rts7751r2d_power_off(void) | ||
25 | { | ||
26 | ctrl_outw(0x0001, PA_POWOFF); | ||
27 | } | ||
28 | |||
23 | /* | 29 | /* |
24 | * Initialize the board | 30 | * Initialize the board |
25 | */ | 31 | */ |
@@ -27,5 +33,6 @@ void __init platform_setup(void) | |||
27 | { | 33 | { |
28 | printk(KERN_INFO "Renesas Technology Sales RTS7751R2D support.\n"); | 34 | printk(KERN_INFO "Renesas Technology Sales RTS7751R2D support.\n"); |
29 | ctrl_outw(0x0000, PA_OUTPORT); | 35 | ctrl_outw(0x0000, PA_OUTPORT); |
36 | pm_power_off = rts7751r2d_power_off; | ||
30 | debug_counter = 0; | 37 | debug_counter = 0; |
31 | } | 38 | } |