diff options
Diffstat (limited to 'drivers/regulator/88pm800.c')
| -rw-r--r-- | drivers/regulator/88pm800.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/88pm800.c b/drivers/regulator/88pm800.c index d333f7eac106..7a721d67e6ac 100644 --- a/drivers/regulator/88pm800.c +++ b/drivers/regulator/88pm800.c | |||
| @@ -310,10 +310,8 @@ static int pm800_regulator_probe(struct platform_device *pdev) | |||
| 310 | 310 | ||
| 311 | pm800_data = devm_kzalloc(&pdev->dev, sizeof(*pm800_data), | 311 | pm800_data = devm_kzalloc(&pdev->dev, sizeof(*pm800_data), |
| 312 | GFP_KERNEL); | 312 | GFP_KERNEL); |
| 313 | if (!pm800_data) { | 313 | if (!pm800_data) |
| 314 | dev_err(&pdev->dev, "Failed to allocate pm800_regualtors"); | ||
| 315 | return -ENOMEM; | 314 | return -ENOMEM; |
| 316 | } | ||
| 317 | 315 | ||
| 318 | pm800_data->map = chip->subchip->regmap_power; | 316 | pm800_data->map = chip->subchip->regmap_power; |
| 319 | pm800_data->chip = chip; | 317 | pm800_data->chip = chip; |
