aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-core.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-07-24 11:49:13 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-07-24 11:49:13 -0400
commit4e4f62bf7396fca48efe61513640ee399a6046e3 (patch)
tree42a503af02d9806bcc05e5fcc2cd53f9bd45b0c2 /drivers/i2c/i2c-core.c
parent9e3288dc9a94fab5ea87db42177d3a9e0345a614 (diff)
parentb37fa16e78d6f9790462b3181602a26b5af36260 (diff)
Merge commit 'v2.6.35-rc6' into devicetree/next
Conflicts: arch/sparc/kernel/prom_64.c
Diffstat (limited to 'drivers/i2c/i2c-core.c')
-rw-r--r--drivers/i2c/i2c-core.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 5588ac1fb8ad..df937df845eb 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -1437,13 +1437,12 @@ static int i2c_detect(struct i2c_adapter *adapter, struct i2c_driver *driver)
1437 if (!(adapter->class & driver->class)) 1437 if (!(adapter->class & driver->class))
1438 goto exit_free; 1438 goto exit_free;
1439 1439
1440 /* Stop here if we can't use SMBUS_QUICK */ 1440 /* Stop here if the bus doesn't support probing */
1441 if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_QUICK)) { 1441 if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_READ_BYTE)) {
1442 if (address_list[0] == I2C_CLIENT_END) 1442 if (address_list[0] == I2C_CLIENT_END)
1443 goto exit_free; 1443 goto exit_free;
1444 1444
1445 dev_warn(&adapter->dev, "SMBus Quick command not supported, " 1445 dev_warn(&adapter->dev, "Probing not supported\n");
1446 "can't probe for chips\n");
1447 err = -EOPNOTSUPP; 1446 err = -EOPNOTSUPP;
1448 goto exit_free; 1447 goto exit_free;
1449 } 1448 }