diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/regulator/arizona-ldo1.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c index 4f6c2055f6b2..d8e7db696d5a 100644 --- a/drivers/regulator/arizona-ldo1.c +++ b/drivers/regulator/arizona-ldo1.c | |||
| @@ -189,10 +189,8 @@ static int arizona_ldo1_probe(struct platform_device *pdev) | |||
| 189 | int ret; | 189 | int ret; |
| 190 | 190 | ||
| 191 | ldo1 = devm_kzalloc(&pdev->dev, sizeof(*ldo1), GFP_KERNEL); | 191 | ldo1 = devm_kzalloc(&pdev->dev, sizeof(*ldo1), GFP_KERNEL); |
| 192 | if (ldo1 == NULL) { | 192 | if (!ldo1) |
| 193 | dev_err(&pdev->dev, "Unable to allocate private data\n"); | ||
| 194 | return -ENOMEM; | 193 | return -ENOMEM; |
| 195 | } | ||
| 196 | 194 | ||
| 197 | ldo1->arizona = arizona; | 195 | ldo1->arizona = arizona; |
| 198 | 196 | ||
