summaryrefslogtreecommitdiff
path: root/drivers/regulator/fixed.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2021-06-23 18:56:31 +0300
committerMark Brown <broonie@kernel.org>2021-06-23 18:56:31 +0300
commit7fb593cbd88cf4df01c096d4dc320f027dfa2560 (patch)
tree1970f6b62728d95ab52de9813bfcf66cd59a48b5 /drivers/regulator/fixed.c
parentebad413c3cb04d60bb6b5f2ec4009af52a8761cb (diff)
parentddf275b219ab22bc07c14ac88c290694089dced0 (diff)
downloadlinux-7fb593cbd88cf4df01c096d4dc320f027dfa2560.tar.xz
Merge remote-tracking branch 'regulator/for-5.14' into regulator-next
Diffstat (limited to 'drivers/regulator/fixed.c')
-rw-r--r--drivers/regulator/fixed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index 34e255c235d4..39284610a536 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -276,7 +276,8 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
*/
cfg.ena_gpiod = gpiod_get_optional(&pdev->dev, NULL, gflags);
if (IS_ERR(cfg.ena_gpiod))
- return PTR_ERR(cfg.ena_gpiod);
+ return dev_err_probe(&pdev->dev, PTR_ERR(cfg.ena_gpiod),
+ "can't get GPIO\n");
cfg.dev = &pdev->dev;
cfg.init_data = config->init_data;