Skip to content

Commit

Permalink
Merge tag 'regmap-v3.15-nodev' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…kernel/git/broonie/regmap

Pull regmap fix from Mark Brown:
 "regmap: Fix for nodev mode

  Add mising braces so that the nodev mode actually works (which was a
  bit of an oversight)"

Testing schmesting.  We don't need not steenking testing.  We have
deadlines to beat, and new code to write.

* tag 'regmap-v3.15-nodev' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
  regmap: adds missing braces in regmap_init()
  • Loading branch information
torvalds committed Apr 11, 2014
2 parents eeb91e4 + a7a037c commit 4b44e7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,10 +761,11 @@ struct regmap *regmap_init(struct device *dev,
if (ret != 0)
goto err_range;

if (dev)
if (dev) {
ret = regmap_attach_dev(dev, map, config);
if (ret != 0)
goto err_regcache;
}

return map;

Expand Down

0 comments on commit 4b44e7b

Please sign in to comment.