diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-06-13 16:27:59 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-06-17 12:18:28 -0400 |
commit | ff73ceed0b5a046468de20d3b014a8c59051f90a (patch) | |
tree | 1636ab097a2e26107a8bb5ee4fab8b13ef9cea3c /include | |
parent | c8587eeef8fc219e806e868c6f0c7170c769efab (diff) |
pinctrl: move the pm state stubs
The stubs for the !PINCTRL case were placed in the wrong
part of the file, causing breakage in linux-next when compiling
SH without pinctrl. Fix it up by moving the stubs to the right
place.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pinctrl/consumer.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h index 0f32f10e347d..d071d850d1de 100644 --- a/include/linux/pinctrl/consumer.h +++ b/include/linux/pinctrl/consumer.h | |||
@@ -111,6 +111,21 @@ static inline void devm_pinctrl_put(struct pinctrl *p) | |||
111 | { | 111 | { |
112 | } | 112 | } |
113 | 113 | ||
114 | static inline int pinctrl_pm_select_default_state(struct device *dev) | ||
115 | { | ||
116 | return 0; | ||
117 | } | ||
118 | |||
119 | static inline int pinctrl_pm_select_sleep_state(struct device *dev) | ||
120 | { | ||
121 | return 0; | ||
122 | } | ||
123 | |||
124 | static inline int pinctrl_pm_select_idle_state(struct device *dev) | ||
125 | { | ||
126 | return 0; | ||
127 | } | ||
128 | |||
114 | #endif /* CONFIG_PINCTRL */ | 129 | #endif /* CONFIG_PINCTRL */ |
115 | 130 | ||
116 | static inline struct pinctrl * __must_check pinctrl_get_select( | 131 | static inline struct pinctrl * __must_check pinctrl_get_select( |
@@ -218,21 +233,6 @@ static inline int pin_config_group_set(const char *dev_name, | |||
218 | return 0; | 233 | return 0; |
219 | } | 234 | } |
220 | 235 | ||
221 | static inline int pinctrl_pm_select_default_state(struct device *dev) | ||
222 | { | ||
223 | return 0; | ||
224 | } | ||
225 | |||
226 | static inline int pinctrl_pm_select_sleep_state(struct device *dev) | ||
227 | { | ||
228 | return 0; | ||
229 | } | ||
230 | |||
231 | static inline int pinctrl_pm_select_idle_state(struct device *dev) | ||
232 | { | ||
233 | return 0; | ||
234 | } | ||
235 | |||
236 | #endif | 236 | #endif |
237 | 237 | ||
238 | #endif /* __LINUX_PINCTRL_CONSUMER_H */ | 238 | #endif /* __LINUX_PINCTRL_CONSUMER_H */ |