diff options
author | Bo Shen <voice.shen@atmel.com> | 2012-10-15 17:30:27 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-31 09:51:37 -0700 |
commit | 2689cd6b16f51c31a55e67fadca68971b6b0d37d (patch) | |
tree | 40340f2db5381f35ca6b680df95074d46de5a31e /drivers/w1 | |
parent | 83dab4684482147564c9f3219f58e45d11765875 (diff) | |
download | kernel_samsung_crespo-2689cd6b16f51c31a55e67fadca68971b6b0d37d.zip kernel_samsung_crespo-2689cd6b16f51c31a55e67fadca68971b6b0d37d.tar.gz kernel_samsung_crespo-2689cd6b16f51c31a55e67fadca68971b6b0d37d.tar.bz2 |
ARM: at91/i2c: change id to let i2c-gpio work
commit 7840487cd6298f9f931103b558290d8d98d41c49 upstream.
The i2c core driver will turn the platform device ID to busnum
When using platfrom device ID as -1, it means dynamically assigned
the busnum. When writing code, we need to make sure the busnum,
and call i2c_register_board_info(int busnum, ...) to register device
if using -1, we do not know the value of busnum
In order to solve this issue, set the platform device ID as a fix number
Here using 0 to match the busnum used in i2c_regsiter_board_info()
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1')
0 files changed, 0 insertions, 0 deletions