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:
949db15
)
regulator: tps80031: Use IS_ERR to check return value of regulator_register()
author
Axel Lin
<
[email protected]
>
Fri, 25 Jan 2013 13:29:41 +0000
(21:29 +0800)
committer
Mark Brown
<
[email protected]
>
Sat, 26 Jan 2013 07:40:36 +0000
(15:40 +0800)
regulator_register() does not return NULL, it returns ERR_PTR on error.
Signed-off-by: Axel Lin <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/regulator/tps80031-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps80031-regulator.c
b/drivers/regulator/tps80031-regulator.c
index b15d711bc8c66634c9792c26e15885e055aabe11..9019d0e7ecb6ad9868fa96e23fa0f77a1275fc75 100644
(file)
--- a/
drivers/regulator/tps80031-regulator.c
+++ b/
drivers/regulator/tps80031-regulator.c
@@
-728,7
+728,7
@@
static int tps80031_regulator_probe(struct platform_device *pdev)
}
}
rdev = regulator_register(&ri->rinfo->desc, &config);
- if (IS_ERR
_OR_NULL
(rdev)) {
+ if (IS_ERR(rdev)) {
dev_err(&pdev->dev,
"register regulator failed %s\n",
ri->rinfo->desc.name);