Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370998
b: refs/heads/master
c: a205e63
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Wolfram Sang committed Apr 2, 2013
1 parent b643966 commit 47cda29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 71546300c8684eb69286604c79624582c16f2f5b
refs/heads/master: a205e63d12716bd871b6a5746b6b624c5965a059
6 changes: 2 additions & 4 deletions trunk/drivers/i2c/muxes/i2c-mux-pca954x.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,11 @@ static int pca954x_remove(struct i2c_client *client)
{
struct pca954x *data = i2c_get_clientdata(client);
const struct chip_desc *chip = &chips[data->type];
int i, err;
int i;

for (i = 0; i < chip->nchans; ++i)
if (data->virt_adaps[i]) {
err = i2c_del_mux_adapter(data->virt_adaps[i]);
if (err)
return err;
i2c_del_mux_adapter(data->virt_adaps[i]);
data->virt_adaps[i] = NULL;
}

Expand Down

0 comments on commit 47cda29

Please sign in to comment.