diff options
author | Sean MacLennan <smaclennan@pikatech.com> | 2009-02-02 02:01:59 -0500 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2009-06-04 08:59:24 -0400 |
commit | 9d2c0f67c8cf8d2f34aa126da7b98d265d54017f (patch) | |
tree | 056c0f6620f53ae9eee466237b2ef65b7eec082b /drivers/i2c/busses | |
parent | 27db1fea1868ee346fe5a2fba00eb8fc69283f2c (diff) |
i2c: Fix confusing i2c-ibm_iic message
The i2c-ibm_iic driver printed messages in an odd order that seemed
to list devices before the driver was probed.
Here is an example:
at24 0-0052: 512 byte 24c04 EEPROM (writable)
ibm-iic ef600700.i2c: using standard (100 kHz) mode
ad7414 0-004a: chip found
This changes the order to print the i2c driver message before scanning
for devices so that the logs show the driver, then the devices.
Signed-off-by: Sean MacLennan <smaclennan@pikatech.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-ibm_iic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-ibm_iic.c b/drivers/i2c/busses/i2c-ibm_iic.c index 8b92a4666e02..e4476743f203 100644 --- a/drivers/i2c/busses/i2c-ibm_iic.c +++ b/drivers/i2c/busses/i2c-ibm_iic.c | |||
@@ -756,12 +756,12 @@ static int __devinit iic_probe(struct of_device *ofdev, | |||
756 | goto error_cleanup; | 756 | goto error_cleanup; |
757 | } | 757 | } |
758 | 758 | ||
759 | /* Now register all the child nodes */ | ||
760 | of_register_i2c_devices(adap, np); | ||
761 | |||
762 | dev_info(&ofdev->dev, "using %s mode\n", | 759 | dev_info(&ofdev->dev, "using %s mode\n", |
763 | dev->fast_mode ? "fast (400 kHz)" : "standard (100 kHz)"); | 760 | dev->fast_mode ? "fast (400 kHz)" : "standard (100 kHz)"); |
764 | 761 | ||
762 | /* Now register all the child nodes */ | ||
763 | of_register_i2c_devices(adap, np); | ||
764 | |||
765 | return 0; | 765 | return 0; |
766 | 766 | ||
767 | error_cleanup: | 767 | error_cleanup: |