devres: Add devres_release()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 3 May 2012 17:15:13 +0000 (18:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 May 2012 23:33:16 +0000 (16:33 -0700)
commitd926d0e4c74cfcb42a05e91d1cdf698b41e1e118
tree9d7cdc794f6c56ef728c751759d8ef639ee6f38f
parent698cd2ddd851b34e7200b4f846ae68306e11bae4
devres: Add devres_release()

APIs using devres frequently want to implement a "remove and free the
resource" operation so it seems sensible that they should be able to
just have devres do the freeing for them since that's a big part of what
devres is all about.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/devres.c
include/linux/device.h