]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Remove bitrotted module_put()s
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 5 Sep 2011 15:07:47 +0000 (08:07 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 5 Sep 2011 17:55:58 +0000 (10:55 -0700)
commit0f16783d3ccf8d3d5896a5835631f018525a0b70
tree3ec502adf5640df58f5f799f1d242944e403d8f0
parentc44b3db48269fecad710425147141273d13c1bac
regmap: Remove bitrotted module_put()s

The conversion to per bus type registration functions means we don't need
to do module_get()s to hold the bus types in memory (their users will link
to them) so we removed all those calls. This left module_put() calls in
the cleanup paths which aren't needed and which cause unbalanced puts if
we ever try to unload anything.

Reported-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c