diff options
author | Mark Brown <broonie@kernel.org> | 2021-06-23 18:56:31 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-23 18:56:31 +0300 |
commit | 7fb593cbd88cf4df01c096d4dc320f027dfa2560 (patch) | |
tree | 1970f6b62728d95ab52de9813bfcf66cd59a48b5 /drivers/regulator/fixed.c | |
parent | ebad413c3cb04d60bb6b5f2ec4009af52a8761cb (diff) | |
parent | ddf275b219ab22bc07c14ac88c290694089dced0 (diff) | |
download | linux-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.c | 3 |
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; |