ARM: at91/i2c: change id to let i2c-at91 work
authorBo Shen <voice.shen@atmel.com>
Mon, 15 Oct 2012 09:30:28 +0000 (17:30 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 24 Oct 2012 16:08:48 +0000 (18:08 +0200)
commit302090a66b85bb82023b07a715f9c9a347be2ac8
treeabaefce04370dad8d0bf67caf2bfbbd594aaeb10
parent7840487cd6298f9f931103b558290d8d98d41c49
ARM: at91/i2c: change id to let i2c-at91 work

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>
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>
arch/arm/mach-at91/at91rm9200.c
arch/arm/mach-at91/at91rm9200_devices.c
arch/arm/mach-at91/at91sam9260.c
arch/arm/mach-at91/at91sam9260_devices.c
arch/arm/mach-at91/at91sam9261.c
arch/arm/mach-at91/at91sam9261_devices.c
arch/arm/mach-at91/at91sam9263.c
arch/arm/mach-at91/at91sam9263_devices.c
arch/arm/mach-at91/at91sam9rl_devices.c