diff options
-rw-r--r-- | drivers/regulator/pbias-regulator.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/pbias-regulator.c b/drivers/regulator/pbias-regulator.c index 708ddbb83e29..6d02d68dfb46 100644 --- a/drivers/regulator/pbias-regulator.c +++ b/drivers/regulator/pbias-regulator.c | |||
@@ -122,10 +122,8 @@ static int pbias_regulator_probe(struct platform_device *pdev) | |||
122 | 122 | ||
123 | drvdata = devm_kzalloc(&pdev->dev, sizeof(struct pbias_regulator_data) | 123 | drvdata = devm_kzalloc(&pdev->dev, sizeof(struct pbias_regulator_data) |
124 | * count, GFP_KERNEL); | 124 | * count, GFP_KERNEL); |
125 | if (drvdata == NULL) { | 125 | if (!drvdata) |
126 | dev_err(&pdev->dev, "Failed to allocate device data\n"); | ||
127 | return -ENOMEM; | 126 | return -ENOMEM; |
128 | } | ||
129 | 127 | ||
130 | syscon = syscon_regmap_lookup_by_phandle(np, "syscon"); | 128 | syscon = syscon_regmap_lookup_by_phandle(np, "syscon"); |
131 | if (IS_ERR(syscon)) | 129 | if (IS_ERR(syscon)) |