i2c: omap: fix i2c bus number output
When probing from devicetree, the output for several i2c host
controllers prints out a bus number of -1:

i2c-omap 44e0b000.i2c: bus -1 rev0.11 at 400 kHz
i2c-omap 4802a000.i2c: bus -1 rev0.11 at 400 kHz
i2c-omap 4819c000.i2c: bus -1 rev0.11 at 400 kHz

The call to i2c_add_numbered_adapter() in probe finds out the next free
bus number, so we move the output to a location where the number is
already determined.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9bf7d3b commit 92b7939211f6a3a57a95e37502de3d0c9bd930d2
@Robert Schwebel Robert Schwebel authored on 2 Jun 2015
Sascha Hauer committed on 3 Jun 2015
Showing 1 changed file
View
drivers/i2c/busses/i2c-omap.c