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/hs7751rvoip | |
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/hs7751rvoip')
-rw-r--r-- | arch/sh/boards/renesas/hs7751rvoip/setup.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/sh/boards/renesas/hs7751rvoip/setup.c b/arch/sh/boards/renesas/hs7751rvoip/setup.c index 29fb5ff70fb5..7ce577822dc0 100644 --- a/arch/sh/boards/renesas/hs7751rvoip/setup.c +++ b/arch/sh/boards/renesas/hs7751rvoip/setup.c | |||
@@ -12,15 +12,14 @@ | |||
12 | 12 | ||
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/irq.h> | 14 | #include <linux/irq.h> |
15 | 15 | #include <linux/mm.h> | |
16 | #include <linux/vmalloc.h> | ||
16 | #include <linux/hdreg.h> | 17 | #include <linux/hdreg.h> |
17 | #include <linux/ide.h> | 18 | #include <linux/ide.h> |
19 | #include <linux/pm.h> | ||
18 | #include <asm/io.h> | 20 | #include <asm/io.h> |
19 | #include <asm/hs7751rvoip/hs7751rvoip.h> | 21 | #include <asm/hs7751rvoip/hs7751rvoip.h> |
20 | 22 | ||
21 | #include <linux/mm.h> | ||
22 | #include <linux/vmalloc.h> | ||
23 | |||
24 | /* defined in mm/ioremap.c */ | 23 | /* defined in mm/ioremap.c */ |
25 | extern void * p3_ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags); | 24 | extern void * p3_ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags); |
26 | 25 | ||
@@ -31,6 +30,11 @@ const char *get_system_type(void) | |||
31 | return "HS7751RVoIP"; | 30 | return "HS7751RVoIP"; |
32 | } | 31 | } |
33 | 32 | ||
33 | static void hs7751rvoip_power_off(void) | ||
34 | { | ||
35 | ctrl_outw(ctrl_inw(PA_OUTPORTR) & 0xffdf, PA_OUTPORTR); | ||
36 | } | ||
37 | |||
34 | /* | 38 | /* |
35 | * Initialize the board | 39 | * Initialize the board |
36 | */ | 40 | */ |
@@ -38,6 +42,7 @@ void __init platform_setup(void) | |||
38 | { | 42 | { |
39 | printk(KERN_INFO "Renesas Technology Sales HS7751RVoIP-2 support.\n"); | 43 | printk(KERN_INFO "Renesas Technology Sales HS7751RVoIP-2 support.\n"); |
40 | ctrl_outb(0xf0, PA_OUTPORTR); | 44 | ctrl_outb(0xf0, PA_OUTPORTR); |
45 | pm_power_off = hs7751rvoip_power_off; | ||
41 | debug_counter = 0; | 46 | debug_counter = 0; |
42 | } | 47 | } |
43 | 48 | ||