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>
This commit is contained in:
parent
9bf7d3b281
commit
92b7939211
|
@ -1091,9 +1091,6 @@ i2c_omap_probe(struct device_d *pdev)
|
|||
/* reset ASAP, clearing any IRQs */
|
||||
omap_i2c_init(i2c_omap);
|
||||
|
||||
dev_info(pdev, "bus %d rev%d.%d at %d kHz\n",
|
||||
pdev->id, major, minor, i2c_omap->speed);
|
||||
|
||||
omap_i2c_idle(i2c_omap);
|
||||
|
||||
i2c_omap->adapter.master_xfer = omap_i2c_xfer,
|
||||
|
@ -1108,6 +1105,9 @@ i2c_omap_probe(struct device_d *pdev)
|
|||
goto err_unuse_clocks;
|
||||
}
|
||||
|
||||
dev_info(pdev, "bus %d rev%d.%d at %d kHz\n",
|
||||
i2c_omap->adapter.nr, major, minor, i2c_omap->speed);
|
||||
|
||||
return 0;
|
||||
|
||||
err_unuse_clocks:
|
||||
|
|
Loading…
Reference in New Issue