projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
556dcf9
)
regulator: da9063: Use IS_ERR to check return value of regulator_register()
author
Axel Lin
<axel.lin@ingics.com>
Fri, 30 Aug 2013 12:08:42 +0000
(20:08 +0800)
committer
Mark Brown
<broonie@linaro.org>
Fri, 30 Aug 2013 14:24:42 +0000
(15:24 +0100)
regulator_register() does not return NULL, it returns ERR_PTR on error.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/da9063-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/da9063-regulator.c
b/drivers/regulator/da9063-regulator.c
index f29e7290cc94a8c0256dd2edd3580676301b43c9..139ad453d773512da3ea072f1f41cafa1445da05 100644
(file)
--- a/
drivers/regulator/da9063-regulator.c
+++ b/
drivers/regulator/da9063-regulator.c
@@
-848,7
+848,7
@@
static int da9063_regulator_probe(struct platform_device *pdev)
config.of_node = da9063_reg_matches[id].of_node;
config.regmap = da9063->regmap;
regl->rdev = regulator_register(®l->desc, &config);
- if (IS_ERR
_OR_NULL
(regl->rdev)) {
+ if (IS_ERR(regl->rdev)) {
dev_err(&pdev->dev,
"Failed to register %s regulator\n",
regl->desc.name);