Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101324
b: refs/heads/master
c: 8508159
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Jul 14, 2008
1 parent 51af612 commit edcee29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f741f673298b03b92d46e30b0b6fd0e960423665
refs/heads/master: 8508159e2f3b82bf109f0ec77bcbd8ff3f3a7e17
8 changes: 8 additions & 0 deletions trunk/drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,14 @@ void i2c_unregister_device(struct i2c_client *client)
return;
}

if (adapter->client_unregister) {
if (adapter->client_unregister(client)) {
dev_warn(&client->dev,
"client_unregister [%s] failed\n",
client->name);
}
}

mutex_lock(&adapter->clist_lock);
list_del(&client->list);
mutex_unlock(&adapter->clist_lock);
Expand Down

0 comments on commit edcee29

Please sign in to comment.