Extend the use of managed resource functions in regulator by replacing
all calls to unmanaged resource allocation functions in
gpio_regulator_probe() with their managed equivalent.

Add a new function, devm_kmemdup(), to drivers/base/devres.c to support this.

Rob Jones (3):
  base: Add block copy func. for managed devices
  gpio: allow gpio array requests for managed devices
  regulator: use managed resources for gpio_regulator_probe().

 drivers/base/devres.c              |   25 +++++++++++++
 drivers/gpio/devres.c              |   63 ++++++++++++++++++++++++++++++++
 drivers/regulator/gpio-regulator.c |   70 ++++++++++++------------------------
 include/linux/device.h             |    2 ++
 include/linux/gpio.h               |    4 +++
 5 files changed, 117 insertions(+), 47 deletions(-)

-- 
1.7.10.4

Incorporates requested changes.

Note that this patch series no longer includes a change to devm_kstrdup()
as this was not essential to the primary aim of the series. This will be
submitted later once devm_kmemdup() has been accepted.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to