Skip to content
Commit a72149e8 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Walleij
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6dbe51c2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment