smdkc100: Fix compile error at usb_board_init
authorKyungmin Park <kyungmin.park@samsung.com>
Sat, 11 Jul 2009 07:05:15 +0000 (16:05 +0900)
committerKyungmin Park <kyungmin.park@samsung.com>
Sat, 11 Jul 2009 07:05:15 +0000 (16:05 +0900)
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
board/samsung/smdkc100/smdkc100.c

index 476b61d..74f41cb 100644 (file)
@@ -69,25 +69,11 @@ void raise(void)
 {
 }
 
-#if defined(CONFIG_CMD_USBDOWN) && !defined(CONFIG_SMDKC100)
+#if defined(CONFIG_CMD_USBDOWN)
 #include <i2c.h>
 
 int usb_board_init(void)
 {
-       uchar val[2] ={0,};
-
-       /* PMIC */
-       if (i2c_read(0x66, 0, 1, val, 2)) {
-               printf("i2c_read error\n");
-               return 1;
-       }
-
-       val[0] |= (1 << 3);
-       val[1] |= (1 << 5);
-
-       if (i2c_write(0x66, 0, 1, val, 2)) {
-               printf("i2c_write error\n");
-               return 1;
-       }
+       return 0;
 }
 #endif