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>
This commit is contained in:
parent
4dc9d76c98
commit
ec604f151e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user