]> err.no Git - linux-2.6/blobdiff - drivers/i2c/i2c-core.c
applesmc: support for Intel iMac
[linux-2.6] / drivers / i2c / i2c-core.c
index c16dcad94412c438998ad9e2014061a7546931cb..550853f79ae81dbba8399747423d87eb40bdd59d 100644 (file)
@@ -813,7 +813,12 @@ static int i2c_check_addr(struct i2c_adapter *adapter, int addr)
 int i2c_attach_client(struct i2c_client *client)
 {
        struct i2c_adapter *adapter = client->adapter;
-       int res = 0;
+       int res;
+
+       /* Check for address business */
+       res = i2c_check_addr(adapter, client->addr);
+       if (res)
+               return res;
 
        client->dev.parent = &client->adapter->dev;
        client->dev.bus = &i2c_bus_type;