From 6f45f59dc841ec649e4e00a60f6f173992df0bf8 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Wed, 4 Jul 2012 14:16:12 -0500 Subject: [PATCH] --- yaml --- r: 326391 b: refs/heads/master c: 701eb2647d7986b42fa973990649a83b3e15e8eb h: refs/heads/master i: 326389: de1858c5c13c723537431d21cccedd364ac9aa8a 326387: 32e99026345f7947cda06c891e3c3567785cc178 326383: 0fabc8c86651366a3982e1f64320297bc63e1d9f v: v3 --- [refs] | 2 +- trunk/drivers/i2c/busses/i2c-iop3xx.c | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 310be57b3142..787cc24273b3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 67ac88ff10fa4253f716cb98ec43303f70711591 +refs/heads/master: 701eb2647d7986b42fa973990649a83b3e15e8eb diff --git a/trunk/drivers/i2c/busses/i2c-iop3xx.c b/trunk/drivers/i2c/busses/i2c-iop3xx.c index 567d87389e3c..2f99613fd677 100644 --- a/trunk/drivers/i2c/busses/i2c-iop3xx.c +++ b/trunk/drivers/i2c/busses/i2c-iop3xx.c @@ -39,6 +39,7 @@ #include #include #include +#include #include "i2c-iop3xx.h" @@ -78,11 +79,11 @@ iop3xx_i2c_enable(struct i2c_algo_iop3xx_data *iop3xx_adap) */ #if defined(CONFIG_ARCH_IOP32X) || defined(CONFIG_ARCH_IOP33X) if (iop3xx_adap->id == 0) { - gpio_line_set(IOP3XX_GPIO_LINE(7), GPIO_LOW); - gpio_line_set(IOP3XX_GPIO_LINE(6), GPIO_LOW); + gpio_set_value(7, 0); + gpio_set_value(6, 0); } else { - gpio_line_set(IOP3XX_GPIO_LINE(5), GPIO_LOW); - gpio_line_set(IOP3XX_GPIO_LINE(4), GPIO_LOW); + gpio_set_value(5, 0); + gpio_set_value(4, 0); } #endif /* NB SR bits not same position as CR IE bits :-( */