diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2013-07-18 14:19:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-08-03 21:40:37 +0400 |
commit | 9dabaf5eddbafa21aded7c063cb38d2e8936c237 (patch) | |
tree | 2f2d04842bc15b761d48f51603e511f7e2a2b946 /Documentation/clk.txt | |
parent | 60b188f0d679656a1a2603d3bc1fa005373f4b9c (diff) | |
download | linux-9dabaf5eddbafa21aded7c063cb38d2e8936c237.tar.xz |
iio: core: implement devm_iio_device_alloc/devm_iio_device_free
Add a resource managed devm_iio_device_alloc()/devm_iio_device_free()
to automatically clean up any allocations made by IIO drivers,
thus leading to simplified IIO drivers code.
In addition, this will allow IIO drivers to use other devm_*() API
(like devm_request_irq) and don't care about the race between
iio_device_free() and the release of resources by Device core
during driver removing.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com>
Tested-by: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/clk.txt')
0 files changed, 0 insertions, 0 deletions