diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-07-20 10:54:49 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-07-29 23:48:28 +0300 |
commit | 1777fc97302997f016b720fea9c4d0e1ad858f56 (patch) | |
tree | 52a81510349e0334009bb161c65bd50563c35a5b /drivers | |
parent | f78709a5d4114edc21a5d86586ed5e56e284f2bd (diff) | |
download | linux-1777fc97302997f016b720fea9c4d0e1ad858f56.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpiolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 464d5ba79f96..bdbfc95793e7 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1414,9 +1414,9 @@ err_free_descs: err_free_gdev: ida_simple_remove(&gpio_ida, gdev->id); /* failures here can mean systems won't boot... */ - pr_err("%s: GPIOs %d..%d (%s) failed to register\n", __func__, + pr_err("%s: GPIOs %d..%d (%s) failed to register, %d\n", __func__, gdev->base, gdev->base + gdev->ngpio - 1, - chip->label ? : "generic"); + chip->label ? : "generic", status); kfree(gdev); return status; } |