diff mbox

[U-Boot,V3,7/7] board: samsung: universal_c210: remove the codes relevant to soft_i2c

Message ID 20170109054753.11655-8-jh80.chung@samsung.com
State Accepted
Delegated to: Minkyu Kang
Headers show

Commit Message

Jaehoon Chung Jan. 9, 2017, 5:47 a.m. UTC
Removes the codes of soft_i2c.
There is no usasge for universal_c210, also didn't define
CONFIG_SOFT_I2C_GPIO_SCL.
This code seems a dead code.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 board/samsung/universal_c210/universal.c | 11 -----------
 1 file changed, 11 deletions(-)

Comments

Simon Glass Jan. 19, 2017, 1:57 p.m. UTC | #1
On 8 January 2017 at 22:47, Jaehoon Chung <jh80.chung@samsung.com> wrote:
> Removes the codes of soft_i2c.
> There is no usasge for universal_c210, also didn't define
> CONFIG_SOFT_I2C_GPIO_SCL.
> This code seems a dead code.
>
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> ---
>  board/samsung/universal_c210/universal.c | 11 -----------
>  1 file changed, 11 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c
index 0645843..feb8a34 100644
--- a/board/samsung/universal_c210/universal.c
+++ b/board/samsung/universal_c210/universal.c
@@ -355,9 +355,6 @@  void exynos_enable_ldo(unsigned int onoff)
 
 int exynos_init(void)
 {
-#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */
-	char buf[16];
-#endif
 	gd->bd->bi_arch_number = MACH_TYPE_UNIVERSAL_C210;
 
 	switch (get_hwrev()) {
@@ -382,14 +379,6 @@  int exynos_init(void)
 		break;
 	}
 
-#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */
-	/* Request soft I2C gpios */
-	strcpy(buf, "soft_i2c_scl");
-	gpio_request(CONFIG_SOFT_I2C_GPIO_SCL, buf);
-
-	strcpy(buf, "soft_i2c_sda");
-	gpio_request(CONFIG_SOFT_I2C_GPIO_SDA, buf);
-#endif
 	check_hw_revision();
 	printf("HW Revision:\t0x%x\n", board_rev);