[ARM] 5394/1: Add static bus numbering support to i2c-versatile
commit2514cca06be9dc7ae12908085ebaf0ef49e6d8ae
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 12 Feb 2009 14:57:20 +0000 (12 15:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 19 Feb 2009 11:30:22 +0000 (19 11:30 +0000)
tree912c6b59bf5d82f8bd0e24a6ffe787c670bba4f2
parenteab184c2362567f2b2e951b7bd0e0d353a7e5091
[ARM] 5394/1: Add static bus numbering support to i2c-versatile

If dev->id is not -1, the platform code may use static bus numbering
rather than dynamic. The patch also changes the i2c_versatile_init to a
subsys_initcall rather than module_init to make sure it is initialised
before the I2C devices initialisation.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/i2c/busses/i2c-versatile.c