s5pc110: sleep: move the show_hw_revision function
authorMinkyu Kang <mk7.kang@samsung.com>
Tue, 8 Dec 2009 01:15:26 +0000 (10:15 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 8 Dec 2009 01:15:26 +0000 (10:15 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal/universal.c
cpu/arm_cortexa8/s5pc1xx/sleep.c

index f599d27..049fc5c 100644 (file)
@@ -1507,6 +1507,7 @@ void board_sleep_init(void)
        printf("Turned off regulators. Preparing to sleep. [%s:%d]\n",
                        __FILE__, __LINE__);
 }
+
 void board_sleep_resume(void)
 {
        unsigned int value;
@@ -1515,6 +1516,8 @@ void board_sleep_resume(void)
        struct s5pc110_gpio *gpio =
                (struct s5pc110_gpio *)S5PC110_GPIO_BASE;
 
+       show_hw_revision();
+
        i2c_set_bus_num(I2C_PMIC);
        addr = 0xCC >> 1;
        if (i2c_probe(addr)) {
index 4f98b73..b8e89a4 100644 (file)
@@ -391,8 +391,6 @@ static int s5pc110_sleep(int mode)
        printf("Wakeup Source: 0x%08x\n", value);
        value = readl(S5PC110_WAKEUP_STAT);
 
-       show_hw_revision();
-
        counter++;
        board_sleep_resume();
        return 0;