projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa2fbe4
)
regmap: Fix return code for stub regmap_get_device()
author
Mark Brown
<broonie@linaro.org>
Fri, 25 Jul 2014 18:01:53 +0000
(19:01 +0100)
committer
Mark Brown
<broonie@linaro.org>
Fri, 25 Jul 2014 18:01:53 +0000
(19:01 +0100)
We return a pointer, not an int.
Signed-off-by: Mark Brown <broonie@linaro.org>
include/linux/regmap.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/regmap.h
b/include/linux/regmap.h
index cd480fd59795aecd4ca45ba134669ff4f33846d3..c5ed83f49c4eada4e30dabde2968fa2c79e396ec 100644
(file)
--- a/
include/linux/regmap.h
+++ b/
include/linux/regmap.h
@@
-733,7
+733,7
@@
static inline struct regmap *dev_get_regmap(struct device *dev,
static inline struct device *regmap_get_device(struct regmap *map)
{
WARN_ONCE(1, "regmap API is disabled");
- return
-EINVA
L;
+ return
NUL
L;
}
#endif