diff options
| author | Mark Brown <broonie@kernel.org> | 2014-10-24 16:56:58 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2014-10-24 17:19:12 -0400 |
| commit | 70b946f9acf4e805361bd877a7e25cc05e497c52 (patch) | |
| tree | 7e53be11b7467696d3cc6d0e4135b83686d61857 /include/linux/regulator | |
| parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) | |
regulator: Return an error from stubbed regulator_get_exclusive()
The user hasn't got a regulator and shouldn't be mislead into thinking
they have one; really we should probably remove this stub entirely (and
may well before the next merge window).
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
| -rw-r--r-- | include/linux/regulator/consumer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index d347c805f923..c0c0a437ec75 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h | |||
| @@ -282,7 +282,7 @@ devm_regulator_get(struct device *dev, const char *id) | |||
| 282 | static inline struct regulator *__must_check | 282 | static inline struct regulator *__must_check |
| 283 | regulator_get_exclusive(struct device *dev, const char *id) | 283 | regulator_get_exclusive(struct device *dev, const char *id) |
| 284 | { | 284 | { |
| 285 | return NULL; | 285 | return ERR_PTR(-ENODEV); |
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | static inline struct regulator *__must_check | 288 | static inline struct regulator *__must_check |
