From a9a537b6318d842306c5dd981c5d35375b48adfc Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Sat, 11 Jul 2009 16:05:15 +0900 Subject: [PATCH] smdkc100: Fix compile error at usb_board_init Signed-off-by: Kyungmin Park --- board/samsung/smdkc100/smdkc100.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/board/samsung/smdkc100/smdkc100.c b/board/samsung/smdkc100/smdkc100.c index 476b61d..74f41cb 100644 --- a/board/samsung/smdkc100/smdkc100.c +++ b/board/samsung/smdkc100/smdkc100.c @@ -69,25 +69,11 @@ void raise(void) { } -#if defined(CONFIG_CMD_USBDOWN) && !defined(CONFIG_SMDKC100) +#if defined(CONFIG_CMD_USBDOWN) #include 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 -- 2.7.4