summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/core.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2024-07-14 18:04:03 -1000
committerTejun Heo <tj@kernel.org>2024-07-14 18:04:03 -1000
commit9283ff5be1510a35356656a6c1efe14f765c936a (patch)
tree2c04ca4f99eca4f25faa98849ddb67b124a74110 /drivers/pinctrl/core.c
parent226c49446bccee1c2315bc88bbbca7e6542e98fc (diff)
parent57b56d16800e8961278ecff0dc755d46c4575092 (diff)
Merge branch 'for-6.10-fixes' into for-6.11
Diffstat (limited to 'drivers/pinctrl/core.c')
-rw-r--r--drivers/pinctrl/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index cffeb869130d..f424a57f0013 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -1106,8 +1106,8 @@ static struct pinctrl *create_pinctrl(struct device *dev,
* an -EPROBE_DEFER later, as that is the worst case.
*/
if (ret == -EPROBE_DEFER) {
- pinctrl_free(p, false);
mutex_unlock(&pinctrl_maps_mutex);
+ pinctrl_free(p, false);
return ERR_PTR(ret);
}
}