Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44350
b: refs/heads/master
c: 3bacb36
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Jean Delvare committed Dec 10, 2006
1 parent 6638e33 commit fdfd662
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 250d1bd3f4ed0b50d79b3ec81ccefbabb203f916
refs/heads/master: 3bacb36db01c7541ffea21d4ff39219e8b211a5c
4 changes: 2 additions & 2 deletions trunk/drivers/i2c/i2c-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ static int i2cdev_attach_adapter(struct i2c_adapter *adap)
i2c_dev->dev = device_create(i2c_dev_class, &adap->dev,
MKDEV(I2C_MAJOR, adap->nr),
"i2c-%d", adap->nr);
if (!i2c_dev->dev) {
res = -ENODEV;
if (IS_ERR(i2c_dev->dev)) {
res = PTR_ERR(i2c_dev->dev);
goto error;
}
res = device_create_file(i2c_dev->dev, &dev_attr_name);
Expand Down

0 comments on commit fdfd662

Please sign in to comment.