]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: core: use devres_release() instead of devres_destroy()
authorJingoo Han <jg1.han@samsung.com>
Tue, 26 Feb 2013 02:34:07 +0000 (11:34 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 7 Mar 2013 04:27:29 +0000 (05:27 +0100)
commit5ab9d93b1cfac905c2c20fe462af5b8d80856dfc
tree81a5401294d90b2810bd8954bf21fbb5c57e9830
parent5d5acf7f3e8c669857f1288b923731e4b4ceb550
pinctrl: core: use devres_release() instead of devres_destroy()

devres_release() can simplify the code, because devres_release()
will call the destructor for the resource as well as freeing
the devres data.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c