diff options
author | Przemyslaw Marczak <p.marczak@samsung.com> | 2015-01-27 12:36:28 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-30 00:09:59 (GMT) |
commit | 18a7f6aa2dcac7e78436cba148b25779f25f5c16 (patch) | |
tree | 00c48261db3e8d7961b664b77223681d41dff6cc /drivers/i2c/i2c-uclass-compat.c | |
parent | b37b46f042ccfcfb97a9ef8b8a568812640a2a70 (diff) | |
download | u-boot-18a7f6aa2dcac7e78436cba148b25779f25f5c16.tar.xz |
dm: i2c-uclass-compat: fix missed argument
This patch fixes build error for CONFIG_DM_I2C_COMPAT.
In i2c_get_chip_for_busnum() call, one of argument was missed,
which was offset_len. Now it is set to 'alen' as previous.
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/i2c/i2c-uclass-compat.c')
-rw-r--r-- | drivers/i2c/i2c-uclass-compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-uclass-compat.c b/drivers/i2c/i2c-uclass-compat.c index 11239da..841ce05 100644 --- a/drivers/i2c/i2c-uclass-compat.c +++ b/drivers/i2c/i2c-uclass-compat.c @@ -17,7 +17,7 @@ static int i2c_compat_get_device(uint chip_addr, int alen, struct dm_i2c_chip *chip; int ret; - ret = i2c_get_chip_for_busnum(cur_busnum, chip_addr, devp); + ret = i2c_get_chip_for_busnum(cur_busnum, chip_addr, alen, devp); if (ret) return ret; chip = dev_get_parent_platdata(*devp); |