diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-07-30 12:38:33 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-09-03 07:21:37 -0400 |
commit | e60bc2df9ba5574af87a8d0fa249ceac9fa1d3bd (patch) | |
tree | 01fc83251693ce476e53eb07c6622f2acfa9ee1b /include/linux/pinctrl/consumer.h | |
parent | 4cbe5a555fa58a79b6ecbb6c531b8bab0650778d (diff) |
pinctrl: use ERR_CAST instead of ERR_PTR(PTR_ERR(...))
This doesn't change semantics, just looks nicer.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl/consumer.h')
-rw-r--r-- | include/linux/pinctrl/consumer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h index e9b7f4350844..d2816454c263 100644 --- a/include/linux/pinctrl/consumer.h +++ b/include/linux/pinctrl/consumer.h | |||
@@ -140,7 +140,7 @@ static inline struct pinctrl * __must_check devm_pinctrl_get_select( | |||
140 | s = pinctrl_lookup_state(p, name); | 140 | s = pinctrl_lookup_state(p, name); |
141 | if (IS_ERR(s)) { | 141 | if (IS_ERR(s)) { |
142 | devm_pinctrl_put(p); | 142 | devm_pinctrl_put(p); |
143 | return ERR_PTR(PTR_ERR(s)); | 143 | return ERR_CAST(s); |
144 | } | 144 | } |
145 | 145 | ||
146 | ret = pinctrl_select_state(p, s); | 146 | ret = pinctrl_select_state(p, s); |