mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
gpio: mockup: improve the error message
Indicate the error number and make the message a bit more elaborate. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
4dc9d76c98
commit
ec604f151e
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue