diff options
author | Andy Lutomirski <luto@amacapital.net> | 2013-07-17 16:27:59 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-08-15 08:49:58 -0400 |
commit | d63a9e851c2c007d9129b8dbfc1af24722bd18bd (patch) | |
tree | 7b8c8e14cc079f9ae347a487ab88fb1adfbe9971 /drivers/i2c | |
parent | d654b5489eb4950cddf6d72a5c3a2fb1cab4f15b (diff) |
i2c: Improve logging on failure to probe for ->class devices
While writing the i2c-imc driver, I noticed that the warning message
when the i2c core can't figure out how to probe is mostly useless.
This trivial patch improves it.
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index d075df641c2c..3d9ca2d3d77e 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -1665,7 +1665,8 @@ static int i2c_default_probe(struct i2c_adapter *adap, unsigned short addr) | |||
1665 | err = i2c_smbus_xfer(adap, addr, 0, I2C_SMBUS_READ, 0, | 1665 | err = i2c_smbus_xfer(adap, addr, 0, I2C_SMBUS_READ, 0, |
1666 | I2C_SMBUS_BYTE, &dummy); | 1666 | I2C_SMBUS_BYTE, &dummy); |
1667 | else { | 1667 | else { |
1668 | dev_warn(&adap->dev, "No suitable probing method supported\n"); | 1668 | dev_warn(&adap->dev, "No suitable probing method supported for address 0x%02X\n", |
1669 | addr); | ||
1669 | err = -EOPNOTSUPP; | 1670 | err = -EOPNOTSUPP; |
1670 | } | 1671 | } |
1671 | 1672 | ||