]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Allow multiple requests of a single supply mapping
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 22 Jun 2012 10:39:16 +0000 (11:39 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Jun 2012 10:53:47 +0000 (11:53 +0100)
commita499fcc59cffa13e118298f6851736bd92f73fa5
tree012b9974ef73d1547e67adb9a225c495847f49f3
parent74244c72e32c74281a4e8fd7b91631ab84e8e1b9
regulator: core: Allow multiple requests of a single supply mapping

Sometimes it may be useful to allow a device to request a supply multiple
times, for example in order to allow framework management of some uses of
the supply with some additional driver specific management or in order to
allow multiple children of an MFD to work with the supply. Currently this
is not possible due to the creation of

Solve this by removing the requested_uA entry (we have no current users
of this feature anyway) and ignoring errors creating the symlink to the
consumer. We should do something nicer than this as this causes sysfs to
spew enormous warnings but it allows users to run for now.

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