Skip to content

Commit

Permalink
Merge branch 'regmap-linus' into regmap-next
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Sep 5, 2011
2 parents fec4fe2 + 5204f5e commit a7ace56
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions 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 a7ace56

Please sign in to comment.