recovery: update: fix key ckeck error
authorSanghee Kim <sh0130.kim@samsung.com>
Mon, 3 May 2010 08:37:38 +0000 (17:37 +0900)
committerSanghee Kim <sh0130.kim@samsung.com>
Mon, 3 May 2010 08:37:38 +0000 (17:37 +0900)
recovery/board/samsung/universal/universal.c

index 240e1fb..8dcfc46 100644 (file)
@@ -456,13 +456,13 @@ static int check_keypad(void)
 
        cpu_rev = s5pc1xx_get_cpu_rev();
        if (cpu_rev == 1) {
-               if (row_state[1] & 0x6)
+               if ((row_state[1] & 0x6) == 0x6)
                        condition = 1;
        } else if (cpu_rev == 2) {
-               if (row_state[2] & 0x6)
+               if ((row_state[2] & 0x6) == 0x6)
                        condition = 1;
        } else {
-               if (row_state[1] & 0x3)
+               if ((row_state[1] & 0x3) == 0x3)
                        condition = 1;
        }