Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108145
b: refs/heads/master
c: c1159f9
h: refs/heads/master
i:
  108143: f820210
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Aug 10, 2008
1 parent a1149ef commit c88fc3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8d24f8dcb7ead491704e274883b2c627062f6235
refs/heads/master: c1159f9e8927f5732c19816a605926bc76c498b2
7 changes: 6 additions & 1 deletion trunk/drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c88fc3b

Please sign in to comment.