regulator: core: Try using the parent device for the default regmap
authorAnilKumar Ch <anilkumar@ti.com>
Fri, 7 Sep 2012 15:15:05 +0000 (20:45 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 8 Sep 2012 00:54:15 +0000 (08:54 +0800)
commit52b84dac436a681fa51dad2b9e57b6ea50309cbd
treef7bfcf40abfde3305efbe4d02d4df6c3661ab759
parent2b5a24a01df12fbfa3e702ad7efae27bcb852e33
regulator: core: Try using the parent device for the default regmap

If the device doesn't have a regmap specified by the driver and we can't
find one on the device itself try its parent, providing a useful defualt
for many MFDs.

[Rewrite commit message -- broonie]

Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c