regulator: core: Use dev_get_regmap() to find the regmap
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 May 2012 17:10:45 +0000 (18:10 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 3 Jun 2012 12:20:34 +0000 (13:20 +0100)
commit3a4b0a07fa69cbfbdd4bc2ebe769cf789949db46
tree7bfaaeea3d8eadd2006c678cc8ea36d17f805844
parent361ff5017446605dca8b0a084c826e3d2a0d0a99
regulator: core: Use dev_get_regmap() to find the regmap

If no regmap is explicitly specified then use dev_get_regmap() to obtain
one. The driver must explicitly enable any actual usage of the regmap
so there's no concern with unwanted usage.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
drivers/regulator/core.c