]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: axp20x: Use parent device as regulator configuration device
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 20 Sep 2014 20:06:34 +0000 (22:06 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 23 Sep 2014 01:18:59 +0000 (18:18 -0700)
commit0fe6c5eaf9756ffb233c92edb4d1037e042a6846
tree15aeee31b2937d44fbac4985c588aee1d4064b4f
parentf45f9587f1dd1e89dd1c89561c9572f777c5bcb7
regulator: axp20x: Use parent device as regulator configuration device

The current device used for the regulator configuration is the child device
created by the MFD driver. This means that it doesn't have any of_node pointing
to it, and whenever we register the regulators, it will not look into the
regulator supply in the DT, hence requiring to provide regulator aliases in the
MFD driver.

We can easily fix that by using the parent device in our configuration, which
has a DT node associated to it, and will allow a DT lookup. Eventually, we will
be able to remove the aliases in the MFD driver.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c