summaryrefslogtreecommitdiff
path: root/common/board_r.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-12-08 16:35:05 -0500
committerTom Rini <trini@ti.com>2014-12-08 16:35:05 -0500
commit0fffbd26d55d89ec5241f8e1ce4c5bc77892678b (patch)
treee483ead53c177a3e8ad3d6563a893623859c40e3 /common/board_r.c
parent1a9c8f12f2f2824a047ebeb3ae342109677b48cc (diff)
parent7a3620b24649663857d99e8ab73ec0b3bd60e50e (diff)
Merge branch 'master' of git://git.denx.de/u-boot-uniphier
Diffstat (limited to 'common/board_r.c')
-rw-r--r--common/board_r.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 1ef79cede0a..4eb7a023d4e 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -291,26 +291,14 @@ static int initr_flash(void)
{
ulong flash_size = 0;
bd_t *bd = gd->bd;
- int ok;
puts("Flash: ");
- if (board_flash_wp_on()) {
+ if (board_flash_wp_on())
printf("Uninitialized - Write Protect On\n");
- /* Since WP is on, we can't find real size. Set to 0 */
- ok = 1;
- } else {
+ else
flash_size = flash_init();
- ok = flash_size > 0;
- }
- if (!ok) {
- puts("*** failed ***\n");
-#ifdef CONFIG_PPC
- /* Why does PPC do this? */
- hang();
-#endif
- return -1;
- }
+
print_size(flash_size, "");
#ifdef CONFIG_SYS_FLASH_CHECKSUM
/*