Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36106
b: refs/heads/master
c: 8202632
h: refs/heads/master
v: v3
  • Loading branch information
David Hubbard authored and Greg Kroah-Hartman committed Sep 26, 2006
1 parent da7caea commit 4e13064
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 7d9db67febf67dd76329a9dd8f97cf4611a8ac2e
refs/heads/master: 8202632647278eba7223727dc442f49227c040d0
11 changes: 8 additions & 3 deletions trunk/drivers/i2c/busses/i2c-isa.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,14 @@ int i2c_isa_add_driver(struct i2c_driver *driver)
dev_dbg(&isa_adapter.dev, "Driver %s registered\n", driver->driver.name);

/* Now look for clients */
driver->attach_adapter(&isa_adapter);

return 0;
res = driver->attach_adapter(&isa_adapter);
if (res) {
dev_err(&isa_adapter.dev,
"Driver %s failed to attach adapter, unregistering\n",
driver->driver.name);
driver_unregister(&driver->driver);
}
return res;
}

int i2c_isa_del_driver(struct i2c_driver *driver)
Expand Down

0 comments on commit 4e13064

Please sign in to comment.