i2c: check_idle: gpio_free
authorkfx <kfx@rock-chips.com>
Tue, 8 Jan 2013 09:18:46 +0000 (17:18 +0800)
committerkfx <kfx@rock-chips.com>
Tue, 8 Jan 2013 09:18:46 +0000 (17:18 +0800)
drivers/i2c/busses/i2c-rk30-adapter.c

index 88e1ea62aa1ce07b870be2855ff5687b71618f8f..4f71bf80ee8fa3297267688d6882092b57657aa3 100755 (executable)
@@ -134,6 +134,9 @@ static int rk30_i2c_check_idle(struct rk30_i2c *i2c)
        sda_lev = gpio_get_value(sda_io);
        scl_lev = gpio_get_value(scl_io);
 
+       gpio_free(sda_io);
+       gpio_free(scl_io);
+
        iomux_set(i2c->sda_mode);
        iomux_set(i2c->scl_mode);