]> git.openfabrics.org - ~emulex/infiniband.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)
commit222cc7b1cefbab1287ed5d5e3cce1f45aec60d39
tree012b9974ef73d1547e67adb9a225c495847f49f3
parent5aff3a8b20c54888e199e863744848007f1f4120
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