Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266977
b: refs/heads/master
c: a7ace56
h: refs/heads/master
i:
  266975: 6f49f53
v: v3
  • Loading branch information
Mark Brown committed Sep 5, 2011
1 parent 3a83cd0 commit 8a53ddd
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: fec4fe26ec69cc63f56e649759b3c8bcc98016ea
refs/heads/master: a7ace561f1e3ebbf40ff20adde9968721a55ef0a
5 changes: 1 addition & 4 deletions trunk/drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,13 @@ struct regmap *regmap_init(struct device *dev,
map->work_buf = kmalloc(map->format.buf_size, GFP_KERNEL);
if (map->work_buf == NULL) {
ret = -ENOMEM;
goto err_bus;
goto err_map;
}

regmap_debugfs_init(map);

return map;

err_bus:
module_put(map->bus->owner);
err_map:
kfree(map);
err:
Expand All @@ -221,7 +219,6 @@ void regmap_exit(struct regmap *map)
{
regmap_debugfs_exit(map);
kfree(map->work_buf);
module_put(map->bus->owner);
kfree(map);
}
EXPORT_SYMBOL_GPL(regmap_exit);
Expand Down

0 comments on commit 8a53ddd

Please sign in to comment.