Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44351
b: refs/heads/master
c: 07125ab
h: refs/heads/master
i:
  44349: 6638e33
  44347: 3193dd9
  44343: 5b2ba57
  44335: f1c80bd
  44319: 4cf10ad
  44287: 39ae60f
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Dec 10, 2006
1 parent fdfd662 commit a96b100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 3bacb36db01c7541ffea21d4ff39219e8b211a5c
refs/heads/master: 07125ab2c2641e976bbaf3b89a735ad5a99e25d3
3 changes: 1 addition & 2 deletions trunk/drivers/i2c/i2c-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ static void return_i2c_dev(struct i2c_dev *i2c_dev)
spin_lock(&i2c_dev_list_lock);
list_del(&i2c_dev->list);
spin_unlock(&i2c_dev_list_lock);
kfree(i2c_dev);
}

static ssize_t show_adapter_name(struct device *dev,
Expand Down Expand Up @@ -431,7 +432,6 @@ static int i2cdev_attach_adapter(struct i2c_adapter *adap)
device_destroy(i2c_dev_class, MKDEV(I2C_MAJOR, adap->nr));
error:
return_i2c_dev(i2c_dev);
kfree(i2c_dev);
return res;
}

Expand All @@ -446,7 +446,6 @@ static int i2cdev_detach_adapter(struct i2c_adapter *adap)
device_remove_file(i2c_dev->dev, &dev_attr_name);
return_i2c_dev(i2c_dev);
device_destroy(i2c_dev_class, MKDEV(I2C_MAJOR, adap->nr));
kfree(i2c_dev);

pr_debug("i2c-dev: adapter [%s] unregistered\n", adap->name);
return 0;
Expand Down

0 comments on commit a96b100

Please sign in to comment.