diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-04-13 10:05:43 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-15 12:21:18 -0400 |
commit | a2f07305e53545dceb08724ed86345c198b2a91a (patch) | |
tree | 893c2a319f44091bd12e0d57df59df502083abc6 /drivers/regulator/max8997.c | |
parent | 41ef2d5678d83af030125550329b6ae8b74618fa (diff) |
regulator: max8997: Test pdata by NULL checking instead of IS_ERR_OR_NULL
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>
Diffstat (limited to 'drivers/regulator/max8997.c')
-rw-r--r-- | drivers/regulator/max8997.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c index 0ac7a87519b4..df20069f0537 100644 --- a/drivers/regulator/max8997.c +++ b/drivers/regulator/max8997.c | |||
@@ -1035,8 +1035,8 @@ static int max8997_pmic_probe(struct platform_device *pdev) | |||
1035 | int i, ret, size, nr_dvs; | 1035 | int i, ret, size, nr_dvs; |
1036 | u8 max_buck1 = 0, max_buck2 = 0, max_buck5 = 0; | 1036 | u8 max_buck1 = 0, max_buck2 = 0, max_buck5 = 0; |
1037 | 1037 | ||
1038 | if (IS_ERR_OR_NULL(pdata)) { | 1038 | if (!pdata) { |
1039 | dev_err(pdev->dev.parent, "No platform init data supplied.\n"); | 1039 | dev_err(&pdev->dev, "No platform init data supplied.\n"); |
1040 | return -ENODEV; | 1040 | return -ENODEV; |
1041 | } | 1041 | } |
1042 | 1042 | ||