projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41ef2d5
)
regulator: max8997: Test pdata by NULL checking instead of IS_ERR_OR_NULL
author
Axel Lin
<axel.lin@ingics.com>
Sat, 13 Apr 2013 14:05:43 +0000
(22:05 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 15 Apr 2013 16:21:18 +0000
(17:21 +0100)
pdata is either a valid pointer or NULL, use NULL checking rather than
IS_ERR_OR_NULL macro.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8997.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/max8997.c
b/drivers/regulator/max8997.c
index 0ac7a87519b46515e3c8b360a95778eea28014fd..df20069f05375ae3bb7661f029119496fe7d8b21 100644
(file)
--- a/
drivers/regulator/max8997.c
+++ b/
drivers/regulator/max8997.c
@@
-1035,8
+1035,8
@@
static int max8997_pmic_probe(struct platform_device *pdev)
int i, ret, size, nr_dvs;
u8 max_buck1 = 0, max_buck2 = 0, max_buck5 = 0;
- if (
IS_ERR_OR_NULL(pdata)
) {
- dev_err(
pdev->dev.parent
, "No platform init data supplied.\n");
+ if (
!pdata
) {
+ dev_err(
&pdev->dev
, "No platform init data supplied.\n");
return -ENODEV;
}