diff options
author | Bartosz Golaszewski <brgl@bgdev.pl> | 2017-06-09 14:41:30 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-06-20 10:19:05 +0300 |
commit | ec604f151ec01c5c646e73a46620750395a46b60 (patch) | |
tree | c5a3528b6aec0d71339bfe55a2babd21478fc5e4 /drivers/gpio/gpio-mockup.c | |
parent | 4dc9d76c983db100ec91b65f6cee804871e5102f (diff) | |
download | linux-ec604f151ec01c5c646e73a46620750395a46b60.tar.xz |
gpio: mockup: improve the error message
Indicate the error number and make the message a bit more elaborate.
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mockup.c')
-rw-r--r-- | drivers/gpio/gpio-mockup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index ab2d38e491bc..2f4fe4175dbf 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -373,8 +373,9 @@ static int gpio_mockup_probe(struct platform_device *pdev) } if (ret) { - dev_err(dev, "gpio<%d..%d> add failed\n", - base, base < 0 ? ngpio : base + ngpio); + dev_err(dev, + "adding gpiochip failed: %d (base: %d, ngpio: %d)\n", + ret, base, base < 0 ? ngpio : base + ngpio); return ret; } |