pinctrl: implement devm_pinctrl_get()/put()

These functions allow the driver core to automatically clean up any
allocations made by drivers, thus leading to simplified drivers.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Stephen Warren
2012-04-16 10:51:00 -06:00
committed by Linus Walleij
parent 2aeefe0233
commit 6d4ca1fb46
4 changed files with 133 additions and 19 deletions
+4
View File
@@ -276,3 +276,7 @@ REGULATOR
devm_regulator_get()
devm_regulator_put()
devm_regulator_bulk_get()
PINCTRL
devm_pinctrl_get()
devm_pinctrl_put()