Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87199
b: refs/heads/master
c: 50c3304
h: refs/heads/master
i:
  87197: 6baa51b
  87195: 49013b6
  87191: 262edc7
  87183: 3830a38
  87167: fdc36f6
v: v3
  • Loading branch information
Hans Verkuil authored and Jean Delvare committed Mar 12, 2008
1 parent f9b0060 commit 217c988
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 5edc68b8530ff1b3133d057350da98c93cca5a82
refs/heads/master: 50c3304a5e1e5217fc6b58fb686edc7d1114f2fa
6 changes: 5 additions & 1 deletion trunk/drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,16 @@ static int i2c_device_probe(struct device *dev)
{
struct i2c_client *client = to_i2c_client(dev);
struct i2c_driver *driver = to_i2c_driver(dev->driver);
int status;

if (!driver->probe)
return -ENODEV;
client->driver = driver;
dev_dbg(dev, "probe\n");
return driver->probe(client);
status = driver->probe(client);
if (status)
client->driver = NULL;
return status;
}

static int i2c_device_remove(struct device *dev)
Expand Down

0 comments on commit 217c988

Please sign in to comment.