i2c-mpc: Use i2c_add_numbered_adapter
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 12 Jul 2007 12:12:29 +0000 (14:12 +0200)
committerJean Delvare <khali@hyperion.delvare>
Thu, 12 Jul 2007 12:12:29 +0000 (14:12 +0200)
commit1469fa263870acd890a4b9f6ef557acc5d673b44
tree4be6e9ac5a5d30db7b4a446ae101cd6010b38470
parent65b22ad9508b609b0625eccb2680996a1e09ed16
i2c-mpc: Use i2c_add_numbered_adapter

Move the i2c-mpc driver over to using the new i2c infrastructure.
Specifically, it now uses i2c_add_numbered_adapter so that the bus number
can be determined ahead of time and used to register i2c clients before
the bus is instantiated.

Tested on an MPC5200 based board

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-mpc.c