Merge remote-tracking branch 'regulator/for-5.14' into regulator-next
[linux-2.6-microblaze.git] / drivers / regulator / fixed.c
index 34e255c..3928461 100644 (file)
@@ -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;