diff options
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index b0de6e7f1fdb..e2d214c5c58f 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c | |||
@@ -979,9 +979,8 @@ static int devm_pinctrl_match(struct device *dev, void *res, void *data) | |||
979 | */ | 979 | */ |
980 | void devm_pinctrl_put(struct pinctrl *p) | 980 | void devm_pinctrl_put(struct pinctrl *p) |
981 | { | 981 | { |
982 | WARN_ON(devres_destroy(p->dev, devm_pinctrl_release, | 982 | WARN_ON(devres_release(p->dev, devm_pinctrl_release, |
983 | devm_pinctrl_match, p)); | 983 | devm_pinctrl_match, p)); |
984 | pinctrl_put(p); | ||
985 | } | 984 | } |
986 | EXPORT_SYMBOL_GPL(devm_pinctrl_put); | 985 | EXPORT_SYMBOL_GPL(devm_pinctrl_put); |
987 | 986 | ||