diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-03-11 09:14:26 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-03-11 09:25:10 +0100 |
commit | 600fa578a95f65bc1f2a03210d3d418747024b43 (patch) | |
tree | 3c76f6647b5bdb44f800295d537cb24227190b42 /arch/sh | |
parent | input: sh_keysc suspend can use to_platform_device() (diff) | |
download | linux-600fa578a95f65bc1f2a03210d3d418747024b43.tar.xz linux-600fa578a95f65bc1f2a03210d3d418747024b43.zip |
sh: improve sh7785lcr power off code
Improve the sh7785lcr power off implementation to
never return. It takes some time before the board
is actually powered off, just hang after asking
the harware to power down.
This removes the serial port garbage printout.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/board-sh7785lcr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c index 6746a5fba3a1..94c0296bc35d 100644 --- a/arch/sh/boards/board-sh7785lcr.c +++ b/arch/sh/boards/board-sh7785lcr.c @@ -284,6 +284,9 @@ static void sh7785lcr_power_off(void) } *p = 0x01; iounmap(p); + set_bl_bit(); + while (1) + cpu_relax(); } /* Initialize the board */ |