diff options
author | Mark Brown | 2018-08-10 18:31:24 +0200 |
---|---|---|
committer | Mark Brown | 2018-08-10 18:31:24 +0200 |
commit | d22d59362b7b2c749245f1269d447011c76ca41d (patch) | |
tree | b3fc0673f62394dc5ed417eac6bad485a28baf25 /drivers/regulator/tps65217-regulator.c | |
parent | Merge branch 'regulator-4.18' into regulator-linus (diff) | |
parent | regulator: add QCOM RPMh regulator driver (diff) | |
download | kernel-qcow2-linux-d22d59362b7b2c749245f1269d447011c76ca41d.tar.gz kernel-qcow2-linux-d22d59362b7b2c749245f1269d447011c76ca41d.tar.xz kernel-qcow2-linux-d22d59362b7b2c749245f1269d447011c76ca41d.zip |
Merge branch 'regulator-4.19' into regulator-next
Diffstat (limited to 'drivers/regulator/tps65217-regulator.c')
-rw-r--r-- | drivers/regulator/tps65217-regulator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/tps65217-regulator.c b/drivers/regulator/tps65217-regulator.c index fc12badf3805..d84fab616abf 100644 --- a/drivers/regulator/tps65217-regulator.c +++ b/drivers/regulator/tps65217-regulator.c @@ -232,6 +232,8 @@ static int tps65217_regulator_probe(struct platform_device *pdev) tps->strobes = devm_kcalloc(&pdev->dev, TPS65217_NUM_REGULATOR, sizeof(u8), GFP_KERNEL); + if (!tps->strobes) + return -ENOMEM; platform_set_drvdata(pdev, tps); |