diff options
Diffstat (limited to 'kernel/include/linux/pinctrl/consumer.h')
-rw-r--r-- | kernel/include/linux/pinctrl/consumer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/include/linux/pinctrl/consumer.h b/kernel/include/linux/pinctrl/consumer.h index 18eccefea..d7e5d608f 100644 --- a/kernel/include/linux/pinctrl/consumer.h +++ b/kernel/include/linux/pinctrl/consumer.h @@ -142,7 +142,7 @@ static inline struct pinctrl * __must_check pinctrl_get_select( s = pinctrl_lookup_state(p, name); if (IS_ERR(s)) { pinctrl_put(p); - return ERR_PTR(PTR_ERR(s)); + return ERR_CAST(s); } ret = pinctrl_select_state(p, s); |