Skip to content

Commit 1777fc9

Browse files
ziswilerlinusw
authored andcommitted
gpiolib: probe deferral error reporting
Actually report the error code from devm_regulator_get() which may as well just be a probe deferral. This is e.g. what one gets upon booting a Colibri T20: gpiochip_add_data_with_key: GPIOs 0..223 (tegra-gpio) failed to register Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent f78709a commit 1777fc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpiolib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,9 +1414,9 @@ int gpiochip_add_data_with_key(struct gpio_chip *chip, void *data,
14141414
err_free_gdev:
14151415
ida_simple_remove(&gpio_ida, gdev->id);
14161416
/* failures here can mean systems won't boot... */
1417-
pr_err("%s: GPIOs %d..%d (%s) failed to register\n", __func__,
1417+
pr_err("%s: GPIOs %d..%d (%s) failed to register, %d\n", __func__,
14181418
gdev->base, gdev->base + gdev->ngpio - 1,
1419-
chip->label ? : "generic");
1419+
chip->label ? : "generic", status);
14201420
kfree(gdev);
14211421
return status;
14221422
}

0 commit comments

Comments
 (0)