aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pinctrl/consumer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pinctrl/consumer.h')
-rw-r--r--include/linux/pinctrl/consumer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h
index 6dd96fb45482..4aad3cea69ae 100644
--- a/include/linux/pinctrl/consumer.h
+++ b/include/linux/pinctrl/consumer.h
@@ -15,11 +15,12 @@
15#include <linux/err.h> 15#include <linux/err.h>
16#include <linux/list.h> 16#include <linux/list.h>
17#include <linux/seq_file.h> 17#include <linux/seq_file.h>
18#include "pinctrl-state.h" 18#include <linux/pinctrl/pinctrl-state.h>
19 19
20/* This struct is private to the core and should be regarded as a cookie */ 20/* This struct is private to the core and should be regarded as a cookie */
21struct pinctrl; 21struct pinctrl;
22struct pinctrl_state; 22struct pinctrl_state;
23struct device;
23 24
24#ifdef CONFIG_PINCTRL 25#ifdef CONFIG_PINCTRL
25 26
@@ -139,7 +140,7 @@ static inline struct pinctrl * __must_check devm_pinctrl_get_select(
139 s = pinctrl_lookup_state(p, name); 140 s = pinctrl_lookup_state(p, name);
140 if (IS_ERR(s)) { 141 if (IS_ERR(s)) {
141 devm_pinctrl_put(p); 142 devm_pinctrl_put(p);
142 return ERR_PTR(PTR_ERR(s)); 143 return ERR_CAST(s);
143 } 144 }
144 145
145 ret = pinctrl_select_state(p, s); 146 ret = pinctrl_select_state(p, s);