From: Eduardo Valentin Date: Tue, 9 Oct 2007 12:52:30 +0000 (-0400) Subject: OMAP: Update gpio expander code to the corret i2c adapter id X-Git-Tag: v2.6.24-omap1~234 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7a184b463ac713f09c38e5628d7b5cf11ac95266;p=linux-2.6-omap-h63xx.git OMAP: Update gpio expander code to the corret i2c adapter id - Update gpio expander code to the corret i2c adapter id - Due to changes on i2c binding style, the i2c adapter is 1 and not 0. (as configured on i2c_register_board_info) Signed-off-by: Eduardo Valentin Signed-off-by: Tony Lindgren --- diff --git a/drivers/i2c/chips/gpio_expander_omap.c b/drivers/i2c/chips/gpio_expander_omap.c index 92e96baf492..dfe7f040fac 100644 --- a/drivers/i2c/chips/gpio_expander_omap.c +++ b/drivers/i2c/chips/gpio_expander_omap.c @@ -26,7 +26,7 @@ int write_gpio_expa(u8 val, int addr) struct i2c_msg msg[1]; unsigned char data[1]; - adap = i2c_get_adapter(0); + adap = i2c_get_adapter(1); if (!adap) return -ENODEV; msg->addr = addr; /* I2C address of GPIO EXPA */ @@ -51,7 +51,7 @@ int read_gpio_expa(u8 * val, int addr) struct i2c_msg msg[1]; unsigned char data[1]; - adap = i2c_get_adapter(0); + adap = i2c_get_adapter(1); if (!adap) return -ENODEV; msg->addr = addr; /* I2C address of GPIO EXPA */