aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/s5m8767.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c
index 8a831947c351..8e56198167e8 100644
--- a/drivers/regulator/s5m8767.c
+++ b/drivers/regulator/s5m8767.c
@@ -549,7 +549,7 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev,
549 549
550 rmode = devm_kzalloc(&pdev->dev, sizeof(*rmode) * 550 rmode = devm_kzalloc(&pdev->dev, sizeof(*rmode) *
551 pdata->num_regulators, GFP_KERNEL); 551 pdata->num_regulators, GFP_KERNEL);
552 if (!rdata) { 552 if (!rmode) {
553 dev_err(iodev->dev, 553 dev_err(iodev->dev,
554 "could not allocate memory for regulator mode\n"); 554 "could not allocate memory for regulator mode\n");
555 return -ENOMEM; 555 return -ENOMEM;