Skip to content

Commit

Permalink
sh: improve sh7785lcr power off code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Mar 11, 2009
1 parent 4997692 commit 600fa57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/sh/boards/board-sh7785lcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ static void sh7785lcr_power_off(void)
}
*p = 0x01;
iounmap(p);
set_bl_bit();
while (1)
cpu_relax();
}

/* Initialize the board */
Expand Down

0 comments on commit 600fa57

Please sign in to comment.