Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28660
b: refs/heads/master
c: 4941b39
h: refs/heads/master
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Jun 22, 2006
1 parent 7af9f09 commit 44de234
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 6af586dc58820d052aa538abef4d4d15c2a9e33e
refs/heads/master: 4941b395b3c2635a8c16d88791a789fb6ac6be43
5 changes: 1 addition & 4 deletions trunk/drivers/i2c/i2c-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,7 @@ static int i2cdev_attach_adapter(struct i2c_adapter *adap)

/* register this i2c device with the driver core */
i2c_dev->adap = adap;
if (adap->dev.parent == &platform_bus)
dev = &adap->dev;
else
dev = adap->dev.parent;
dev = &adap->dev;
i2c_dev->class_dev = class_device_create(i2c_dev_class, NULL,
MKDEV(I2C_MAJOR, i2c_dev->minor),
dev, "i2c-%d", i2c_dev->minor);
Expand Down

0 comments on commit 44de234

Please sign in to comment.