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>
This commit is contained in:
parent
f114040e3e
commit
70b946f9ac
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ devm_regulator_get(struct device *dev, const char *id)
|
||||||
static inline struct regulator *__must_check
|
static inline struct regulator *__must_check
|
||||||
regulator_get_exclusive(struct device *dev, const char *id)
|
regulator_get_exclusive(struct device *dev, const char *id)
|
||||||
{
|
{
|
||||||
return NULL;
|
return ERR_PTR(-ENODEV);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct regulator *__must_check
|
static inline struct regulator *__must_check
|
||||||
|
|
Loading…
Add table
Reference in a new issue