Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec604f15 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Linus Walleij
Browse files

gpio: mockup: improve the error message



Indicate the error number and make the message a bit more elaborate.

Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 4dc9d76c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
		}